[Samba] Join an additional Samba DC to an existing Active Directory

basti mailinglist at unix-solution.de
Thu Aug 25 10:03:30 UTC 2016

I try to add a BDC to my AD using this Howto

host -t A pdc.kes.local
pdc.kes.local has address

ldapsearch -h pdc.kes.local -b'dc=kes,dc=local' -x
# extended LDIF
# LDAPv3
# base <dc=kes,dc=local> with scope subtree
# filter: (objectclass=*)
# requesting: ALL

# kes.local
dn: dc=kes,dc=local
objectClass: top
objectClass: dcObject
objectClass: organization
o: kes.local
dc: kes


but when I try

samba-tool domain join kes.local DC -Uadministrator --realm=KES.local
Finding a writeable DC for domain 'kes.local'
Found DC pdc.kes.local
Failed to bind - LDAP client internal error: NT code 0x80090302
Failed to connect to 'ldap://pdc.kes.local' with backend 'ldap': (null)
ERROR(ldb): uncaught exception - None
  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
657, in run
  File "/usr/lib/python2.7/dist-packages/samba/join.py", line 1116, in
    machinepass, use_ntvfs, dns_backend, promote_existing)
  File "/usr/lib/python2.7/dist-packages/samba/join.py", line 85, in
    credentials=ctx.creds, lp=ctx.lp)
  File "/usr/lib/python2.7/dist-packages/samba/samdb.py", line 57, in
  File "/usr/lib/python2.7/dist-packages/samba/__init__.py", line 115,
in __init__
    self.connect(url, flags, options)
  File "/usr/lib/python2.7/dist-packages/samba/samdb.py", line 72, in
root at rtr:/home/user# man samba-tool

On my pdc I use BIND aus DNS backend.

Thanks for any support.
Best Regards

More information about the samba mailing list