[Samba] Adding new DC causes samba.join.DCJoinException

Rowland penny rpenny at samba.org
Tue Jul 9 10:06:34 UTC 2019

On 09/07/2019 10:42, William Edwards wrote:
> I removed the files as follows:
> root at addc1:~# updatedb
> root at addc1:~# locate secrets.ldb
> /var/lib/samba/private/secrets.ldb
> root at addc1:/var/lib/samba/private# systemctl stop samba-ad-dc
> root at addc1:/var/lib/samba/private# mv secrets.ldb{,.bak}
> root at addc1:/var/lib/samba/private# mv secrets.tdb{,.bak}
> I then attempted to join the domain again and got:
> "Joined domain xxx as a DC"
> Everything still seems to work fine now (although, despite the 
> warning, the second DC was already a domain member and domain DC 
> before!). I'm quite confident I found a bug here though. Thanks for 
> the help.

And I am quite confident you haven't, If the computer was a DC with the 
same name, you cannot join it again without removing the 'old' DC from 
AD and cleaning up the computer before you run the join command.


> ----- Originele b
> ------------------------------------------------------------------------

More information about the samba mailing list