Johan Hendriks
2014-Jan-02 08:28 UTC
[Samba] Can not join samba4 to a windows 2012 server with a 2008R2 schema
Hello, I am tring to get my samba 4 machine to join a windows2012 Domain as an additional DC for a remote site i need to setup. In my test setup samba 4 fails to join. I have googled, but i am trying it for about a week now so it is time to call someone. :) My setup is FreeBSD 10 with samba 4.0.13, but i also tried FreeBSD 8 and 9 with the same result. My windows 2012 server is provisioned with a 2008R2 AD and functionality. Could some one please point me in the right direction? The error i get is as follows. [root at srv-dc02 ~]# samba-tool domain join mercury.local DC -Uadministrator --realm=mercury.local --dns-backend=BIND9_DLZ Finding a writeable DC for domain 'mercury.local' Found DC srv-dc01.mercury.local Password for [WORKGROUP\administrator]:************* workgroup is MERCURY realm is mercury.local checking sAMAccountName Adding CN=SRV-DC02,OU=Domain Controllers,DC=mercury,DC=local Adding CN=SRV-DC02,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=mercury,DC=local Adding CN=NTDS Settings,CN=SRV-DC02,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=mercury,DC=local Adding SPNs to CN=SRV-DC02,OU=Domain Controllers,DC=mercury,DC=local Setting account password for SRV-DC02$ Enabling account Adding DNS account CN=dns-SRV-DC02,CN=Users,DC=mercury,DC=local with dns/ SPN Setting account password for dns-SRV-DC02 Calling bare provision No IPv6 address will be assigned Provision OK for domain DN DC=mercury,DC=local Starting replication Schema-DN[CN=Schema,CN=Configuration,DC=mercury,DC=local] objects[402] linked_values[0] Schema-DN[CN=Schema,CN=Configuration,DC=mercury,DC=local] objects[804] linked_values[0] Schema-DN[CN=Schema,CN=Configuration,DC=mercury,DC=local] objects[1206] linked_values[0] Schema-DN[CN=Schema,CN=Configuration,DC=mercury,DC=local] objects[1606] linked_values[0] Schema-DN[CN=Schema,CN=Configuration,DC=mercury,DC=local] objects[1688] linked_values[0] Analyze and apply schema objects ERROR: no subClassOf 'top' for 'samDomain' Failed to create schema-cache indexes! Join failed - cleaning up checking sAMAccountName Deleted CN=SRV-DC02,OU=Domain Controllers,DC=mercury,DC=local Deleted CN=dns-SRV-DC02,CN=Users,DC=mercury,DC=local Deleted CN=NTDS Settings,CN=SRV-DC02,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=mercury,DC=local Deleted CN=SRV-DC02,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=mercury,DC=local ERROR(<type 'exceptions.TypeError'>): uncaught exception - Failed to process chunk: NT_STATUS_INTERNAL_ERROR File "/usr/local/lib/python2.7/site-packages/samba/netcmd/__init__.py", line 175, in _run return self.run(*args, **kwargs) File "/usr/local/lib/python2.7/site-packages/samba/netcmd/domain.py", line 552, in run machinepass=machinepass, use_ntvfs=use_ntvfs, dns_backend=dns_backend) File "/usr/local/lib/python2.7/site-packages/samba/join.py", line 1172, in join_DC ctx.do_join() File "/usr/local/lib/python2.7/site-packages/samba/join.py", line 1077, in do_join ctx.join_replicate() File "/usr/local/lib/python2.7/site-packages/samba/join.py", line 800, in join_replicate replica_flags=ctx.replica_flags) File "/usr/local/lib/python2.7/site-packages/samba/drs_utils.py", line 252, in replicate schema=schema, req_level=req_level, req=req) [root at srv-dc02 ~]# Thanks all for your time. regards Johan