[Samba] WERR_DS_DOMAIN_RENAME_IN_PROGRESS - Join Failed

Taner Tas
2018-10-31T08:10:43Z

Hi,

I'm trying to join a Samba 4.9.1 Debian Strech installation (also tested
with 4.8.6) to a Windows 2012 R2 Server which runs in 2008-R2 functional
level. This is a production system and it is going to be first Samba DC
in domain. There is currently two Windows DC's in domain. All FSMO
roles hold by DC1.

It seems there's something going on with Widows DC's bu I'm not able
to
the find the cause of the problem yet. Google search didn't help
either.

Any suggestion will be appreciated.

# samba-tool domain join testdomain.tld DC --dns-backend=BIND9_DLZ
--server=10.0.1.91 -U"TESTDOMAIN.TLD\Administrator"

Password for [TESTDOMAIN.TLD\Administrator]:
workgroup is TESTDOMAIN
realm is testdomain.tld
Adding CN=SDC1,OU=Domain Controllers,DC=testdomain,DC=tld
Adding
CN=SDC1,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=testdomain,DC=tld
Adding CN=NTDS
Settings,CN=SDC1,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=testdomain,DC=tld
DsAddEntry failed with status WERR_ACCESS_DENIED info (8612,
'WERR_DS_DOMAIN_RENAME_IN_PROGRESS') Join failed - cleaning up Deleted
CN=SDC1,OU=Domain Controllers,DC=testdomain,DC=tld Deleted
CN=SDC1,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=testdomain,DC=tld
ERROR(runtime): uncaught exception - DsAddEntry failed File
"/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 177,
in _run return self.run(*args, **kwargs) File
"/usr/lib/python2.7/dist-packages/samba/netcmd/domain.py", line 716,
in
run backend_store=backend_store) File
"/usr/lib/python2.7/dist-packages/samba/join.py", line 1500, in
join_DC
ctx.do_join() File "/usr/lib/python2.7/dist-packages/samba/join.py",
line 1396, in do_join ctx.join_add_objects() File
"/usr/lib/python2.7/dist-packages/samba/join.py", line 653, in
join_add_objects ctx.join_add_ntdsdsa() File
"/usr/lib/python2.7/dist-packages/samba/join.py", line 578, in
join_add_ntdsdsa ctx.DsAddEntry([rec]) File
"/usr/lib/python2.7/dist-packages/samba/join.py", line 527, in
DsAddEntry raise RuntimeError("DsAddEntry failed")

---
Taner Tas