[Samba] Join AD DC Fail (LDAP_ENTRY_ALREADY_EXISTS)

Chan Min Wai dcmwai at gmail.com
Mon Aug 4 11:04:16 MDT 2014


Dear All,

Any suggestion to the message below?

Thank You.



amtbsrv02 ~ # samba-tool domain join amtb-workgroup DC -Uadministrator
--realm=KL01.AMTB-M.ORG.MY --dns-backend=BIND9_DLZ
Finding a writeable DC for domain 'amtb-workgroup'
Found DC amtbserver.kl01.amtb-m.org.my
Password for [AMTB-WORKGROUP\administrator]:
workgroup is AMTB-WORKGROUP
realm is kl01.amtb-m.org.my
checking sAMAccountName
Adding CN=AMTBSRV02,OU=Domain Controllers,DC=kl01,DC=amtb-m,DC=org,DC=my
Join failed - cleaning up
checking sAMAccountName
ERROR(ldb): uncaught exception - LDAP error 68 LDAP_ENTRY_ALREADY_EXISTS -
 <00002071: ../ldb_tdb/ldb_index.c:1216: Failed to re-index objectSid in
CN=AMTBSRV02,OU=Domain Controllers,DC=kl01,DC=amtb-m,DC=org,DC=my -
../ldb_tdb/ldb_index.c:1216: Failed to re-index objectSid in
CN=AMTBSRV02,OU=Domain Controllers,DC=kl01,DC=amtb-m,DC=org,DC=my - ../l> <>
  File "/usr/lib64/python2.7/site-packages/samba/netcmd/__init__.py", line
175, in _run
    return self.run(*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/samba/netcmd/domain.py", line
552, in run
    machinepass=machinepass, use_ntvfs=use_ntvfs, dns_backend=dns_backend)
  File "/usr/lib64/python2.7/site-packages/samba/join.py", line 1172, in
join_DC
    ctx.do_join()
  File "/usr/lib64/python2.7/site-packages/samba/join.py", line 1075, in
do_join
    ctx.join_add_objects()
  File "/usr/lib64/python2.7/site-packages/samba/join.py", line 515, in
join_add_objects
    ctx.samdb.add(rec)


More information about the samba mailing list