[Samba] SAMBA failed join domain DC

Massimo Donato - Adcom.it donato at adcom.it
Tue Feb 20 12:21:30 UTC 2018

Il 20/02/2018 12:47, Rowland Penny via samba ha scritto:
> On Tue, 20 Feb 2018 14:10:16 +0500
> "denis.shigapov" <denis.shigapov at stroylandiya.ru> wrote:
> It seems that the problem starts here:
> Could not find machine account in secrets database
> Yet near the top there is: Setting up secrets.ldb
> It seems that either 'secrets.ldb' doesn't contain the required info or
> 'vas.lah' doesn't have the required permissions to read it.
> You also shouldn't need to set the DC to join to, Samba can find a DC
> to use.
> Is it possible you could try the join command like this:
> samba-tool domain join EXAMPLE DC -UAdministrator --password=password
> --realm=EXAMPLE.RU --site=SITE2
> Rowland
i have a similar issue i think
tryed this:

samba-tool domain join ADCOMLOCAL DC

and this is what i get

Finding a writeable DC for domain 'ADCOMLOCAL'
Found DC zeus.adcomlocal.local
Password for [administrator at ADCOMLOCAL.LOCAL]:
workgroup is ADCOMLOCAL
realm is adcomlocal.local
ERROR(<class 'samba.join.DCJoinException'>): uncaught exception - Can't 
join, error: Not removing account ZEUS$ which looks like a Samba DC 
account maching the password we already have. To override, remove 
secrets.ldb and secrets.tdb
line 176, in _run
     return self.run(*args, **kwargs)
line 661, in run
     machinepass=machinepass, use_ntvfs=use_ntvfs, dns_backend=dns_backend)
   File "/usr/local/samba/lib64/python2.7/site-packages/samba/join.py", 
line 1474, in join_DC
   File "/usr/local/samba/lib64/python2.7/site-packages/samba/join.py", 
line 1371, in do_join
   File "/usr/local/samba/lib64/python2.7/site-packages/samba/join.py", 
line 270, in cleanup_old_join
   File "/usr/local/samba/lib64/python2.7/site-packages/samba/join.py", 
line 239, in cleanup_old_accounts
     % ctx.samname)

Questa email è stata esaminata alla ricerca di virus da AVG.

More information about the samba mailing list