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

bogdan_bartos admin at
Sun Jun 7 07:46:35 MDT 2015

On the primary DC:

[root at fileserver sbin]# cat /etc/resolv.conf
# Generated by NetworkManager

[root at fileserver sbin]# cat /etc/hosts               localhost.localdomain localhost   fileserver
::1             localhost6.localdomain6 localhost6

On the secondary DC:

[root at backupdc bin]# cat /etc/resolv.conf
# Generated by NetworkManager      backupdc

[root at backupdc bin]# cat /etc/hosts   localhost localhost.localdomain localhost4
localhost4.localdomain4        backupdc
::1         localhost localhost.localdomain localhost6

And...I get the same error (I did restart samba on the pDC after the

[root at backupdc bin]# kinit administrator
Password for administrator at FILESERVER.SPECIFIED.CA:
Warning: Your password will expire in 41 days on Sat 18 Jul 2015 01:58:01 PM

[root at backupdc bin]# ./samba-tool domain join DC
-Uadministrator --realm=FILESERVER.SPECIFIED.CA
Finding a writeable DC for domain ''
ERROR(exception): uncaught exception - Failed to find a writeable DC for
domain ''
line 175, in _run
    return*args, **kwargs)
line 613, in run
    machinepass=machinepass, use_ntvfs=use_ntvfs, dns_backend=dns_backend)
  File "/usr/local/samba/lib64/python2.7/site-packages/samba/", line
1161, in join_DC
    machinepass, use_ntvfs, dns_backend, promote_existing)
  File "/usr/local/samba/lib64/python2.7/site-packages/samba/", line
79, in __init__
    ctx.server = ctx.find_dc(domain)
  File "/usr/local/samba/lib64/python2.7/site-packages/samba/", line
267, in find_dc
    raise Exception("Failed to find a writeable DC for domain '%s'" %

View this message in context:
Sent from the Samba - samba-technical mailing list archive at

More information about the samba-technical mailing list