[Samba] Join AD DC Fail (LDAP_ENTRY_ALREADY_EXISTS)

Chan Min Wai dcmwai at gmail.com
Mon Aug 4 20:10:00 MDT 2014


Hi Marc,

The 2 AD Dc was working until one day Power failure (or some kind)

And the AD Dc are having issue (I can see it on DC2)
When only DC2 is online there will be some issue


So I was trying to rejoin to the AD...

I think t take a wrong steps to try fixing it..



On Tue, Aug 5, 2014 at 1:42 AM, Marc Muehlfeld <mmuehlfeld at samba.org> wrote:

> Hello,
>
> Am 04.08.2014 19:04, schrieb Chan Min Wai:
> > Any suggestion to the message below?
> >
> > 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)
> >
>
>
>
> Did the machine account already exist in AD, when you did the join?
>
>
> Regards,
> Marc
>


More information about the samba mailing list