Cannot join as secondary DC - samba 4.2.2 - <bug?>

Rowland Penny repenny241155 at gmail.com
Sun Jun 7 08:40:28 MDT 2015


On 07/06/15 14:49, bogdan_bartos wrote:
> I did a mistake - on the secondary DC:
>
> [root at backupdc bin]# cat /etc/resolv.conf
> # Generated by NetworkManager
> search fileserver.specified.ca
> nameserver 192.168.100.253
>
> But the results are still the same:
>
> [root at backupdc bin]# ./samba-tool domain join fileserver.specified.ca DC
> -Uadministrator --realm=FILESERVER.SPECIFIED.CA
> Finding a writeable DC for domain 'fileserver.specified.ca'
> ERROR(exception): uncaught exception - Failed to find a writeable DC for
> domain 'fileserver.specified.ca'
>    File
> "/usr/local/samba/lib64/python2.7/site-packages/samba/netcmd/__init__.py",
> line 175, in _run
>      return self.run(*args, **kwargs)
>    File
> "/usr/local/samba/lib64/python2.7/site-packages/samba/netcmd/domain.py",
> line 613, 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
> 1161, in join_DC
>      machinepass, use_ntvfs, dns_backend, promote_existing)
>    File "/usr/local/samba/lib64/python2.7/site-packages/samba/join.py", line
> 79, in __init__
>      ctx.server = ctx.find_dc(domain)
>    File "/usr/local/samba/lib64/python2.7/site-packages/samba/join.py", line
> 267, in find_dc
>      raise Exception("Failed to find a writeable DC for domain '%s'" %
> domain)
>
>
>
>
> --
> View this message in context: http://samba.2283325.n4.nabble.com/Cannot-join-as-secondary-DC-samba-4-2-2-bug-tp4686826p4686864.html
> Sent from the Samba - samba-technical mailing list archive at Nabble.com.

This is very strange, do you have a firewall running on either of the 
two machines ?
Is selinux running ?

Have a look here: 
https://wiki.samba.org/index.php/Join_a_domain_as_a_DC#Kerberos

It may provide a pointer.

Finally, if all else fails:

Can you try adding '--server=fileserver.fileserver.specified.ca' to the 
join line, by my reading of join.py this should stop the search for the DC.

Rowland


More information about the samba-technical mailing list