Failure to join existing domain

Alex King alex at
Fri Dec 2 01:38:23 MST 2011


I pulled down samba from git (alpha 18), followed the HOWTO at

Trying to install a DC alongside an existing 2008R2 server with 

I installed a fresh Debian Stable base system in a VM.

I compiled, installed, set up DNS (pointed /etc/resolv.conf to the 
existing 2008 server) and Kerberos as in the howto.  kinit successfully 
gained a ticket, but samba-tool domain join failed with 
"ERROR(exception): uncaught exception - Failed to find a writeable DC 
for domain"

Reporting the failure as requested in the howto.  I have googled this 
error, without getting any advice that can get me further.

root at ad1:/usr/local/samba# /usr/local/samba/bin/samba-tool domain join DC -Uadministrator
Finding a writeable DC for domain ''
ERROR(exception): uncaught exception - Failed to find a writeable DC for 
domain ''
line 167, in _run
     return*args, **kwargs)
line 151, in run
   File "/usr/local/samba/lib/python2.6/site-packages/samba/", 
line 921, in join_DC
   File "/usr/local/samba/lib/python2.6/site-packages/samba/", 
line 66, in __init__
     ctx.server = ctx.find_dc(domain)
   File "/usr/local/samba/lib/python2.6/site-packages/samba/", 
line 204, in find_dc
     raise Exception("Failed to find a writeable DC for domain '%s'" % 

I understand the exchange server schema may cause problems, but this 
seems like early in the process to luck out.

What could be causing this error?

Does anyone else have success joining alpha18 to a 2008 AD domain?  Has 
anyone else successfully got samba4 DCs running with the exchange schema?

My aim is to have all users in AD using a linux MTA, but a small subset 
of users will have email forwarded to exchange running on 2008.  If I 
can't have the exchange server running in the same domain as samba4, I 
might just keep them running in separate domains.


More information about the samba-technical mailing list