[Samba] Can't join, error: Not removing account DC2$ which looks like a Samba DC account maching...
Elias Pereira
empbilly at gmail.com
Mon Nov 20 19:08:46 UTC 2017
hello,
In a test environment I set up two DCs.
DC1.sandom.teste.com
DC2.sandom.teste.com
All tests requested by the wiki were done and all ok.
I tried to join a Samba DC to an existing Active Directory, but after it
requests the password, the following error occurs.
root at dc2 # samba-tool domain join sandom.teste.com DC
-U"SERTAO\administrator" --dns-backend=BIND9_DLZ --option='idmap_ldb:use
rfc2307 = yes'
ERROR(<class 'samba.join.DCJoinException'>): *uncaught exception - Can't
join, error: Not removing account DC2$ which looks like a Samba DC account
maching the password we already have. To override, remove secrets.ldb and
secrets.tdb*
File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line
176, in _run
return self.run(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/samba/netcmd/domain.py", line 661,
in run
machinepass=machinepass, use_ntvfs=use_ntvfs, dns_backend=dns_backend)
File "/usr/lib/python2.7/dist-packages/samba/join.py", line 1474, in
join_DC
ctx.do_join()
File "/usr/lib/python2.7/dist-packages/samba/join.py", line 1371, in
do_join
ctx.cleanup_old_join()
File "/usr/lib/python2.7/dist-packages/samba/join.py", line 270, in
cleanup_old_join
ctx.cleanup_old_accounts(force=force)
File "/usr/lib/python2.7/dist-packages/samba/join.py", line 239, in
cleanup_old_accounts
% ctx.samname)
Any idea?
--
Elias Pereira
More information about the samba
mailing list