[Samba] Domain Join fails w/ Samba4 to AD

Cam Clayton cameron.clayton at momsorganicmarket.com
Thu Feb 19 09:01:54 MST 2015


Hello,

I’m unable to get Samba4 to join an existing AD domain as a DC. Running a Win2k12 R2 Server as primary.

This is a test server, before rolling it out live to a remote location.

it at testdom:~$ sudo samba-tool domain join example.com DC -Uadministrator —realm=example.com --server "ad.example.com" --dns=SAMBA_INTERNAL -WEXAMPLE
[sudo] password for it: 
Password for [EXAMPLE\administrator]:
workgroup is EXAMPLE
realm is EXAMPLE.com
checking sAMAccountName
Adding CN=TESTDOM,OU=Domain Controllers,DC=example,DC=com
Adding CN=TESTDOM,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=example,DC=com
Join failed - cleaning up
checking sAMAccountName
Deleted CN=TESTDOM,OU=Domain Controllers,DC=example,DC=com
ERROR(ldb): uncaught exception - LDAP error 32 LDAP_NO_SUCH_OBJECT - CN=Sites,CN=Configuration,DC=example,DC=com <0000208D: NameErr: DSID-03100238, problem 2001 (NO_OBJECT), data 0, best match of:
	'CN=Sites,CN=Configuration,DC=example,DC=com'
> <>
  File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 175, in _run
    return self.run(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/samba/netcmd/domain.py", line 552, in run
    machinepass=machinepass, use_ntvfs=use_ntvfs, dns_backend=dns_backend)
  File "/usr/lib/python2.7/dist-packages/samba/join.py", line 1172, in join_DC
    ctx.do_join()
  File "/usr/lib/python2.7/dist-packages/samba/join.py", line 1075, in do_join
    ctx.join_add_objects()
  File "/usr/lib/python2.7/dist-packages/samba/join.py", line 534, in join_add_objects
    ctx.samdb.add(rec)

Any ideas?

Cam Clayton


More information about the samba mailing list