ArchiveOrangemail archive

Discussions on Samba internals. For general questions please subscribe to the list samba@samba.org


samba-technical.lists.samba.org
(List home) (Recent threads) (19 other Samba lists)

Subscription Options

  • RSS or Atom: Read-only subscription using a browser or aggregator. This is the recommended way if you don't need to send messages to the list. You can learn more about feed syndication and clients here.
  • Conventional: All messages are delivered to your mail address, and you can reply. To subscribe, send an email to the list's subscribe address with "subscribe" in the subject line, or visit the list's homepage here.
  • Moderate traffic list: up to 30 messages per day
  • This list contains about 102,324 messages, beginning Dec 2003
  • 49 messages added yesterday
Report the Spam
This button sends a spam report to the moderator. Please use it sparingly. For other removal requests, read this.
Are you sure? yes no

Failure to join existing domain

Ad
Alex King 1322816192Fri, 02 Dec 2011 08:56:32 +0000 (UTC)
Hi,

I pulled down samba from git (alpha 18), followed the HOWTO at 
http://wiki.samba.org/index.php/Samba4/HOWTO/...

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

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@ad1:/usr/local/samba# /usr/local/samba/bin/samba-tool domain join 
servers.nzcuexchange.co.nz DC -Uadministrator 
--realm=servers.nzcuexchange.co.nz
Finding a writeable DC for domain 'servers.nzcuexchange.co.nz'
ERROR(exception): uncaught exception - Failed to find a writeable DC for 
domain 'servers.nzcuexchange.co.nz'
   File 
"/usr/local/samba/lib/python2.6/site-packages/samba/netcmd/__init__.py", 
line 167, in _run
     return self.run(*args, **kwargs)
   File 
"/usr/local/samba/lib/python2.6/site-packages/samba/netcmd/domain.py", 
line 151, in run
     machinepass=machinepass)
   File "/usr/local/samba/lib/python2.6/site-packages/samba/join.py", 
line 921, in join_DC
     machinepass)
   File "/usr/local/samba/lib/python2.6/site-packages/samba/join.py", 
line 66, in __init__
     ctx.server = ctx.find_dc(domain)
   File "/usr/local/samba/lib/python2.6/site-packages/samba/join.py", 
line 204, in find_dc
     raise Exception("Failed to find a writeable DC for domain '%s'" % 
domain)

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.

Thanks,
Alex
Andreas Oster 1322819362Fri, 02 Dec 2011 09:49:22 +0000 (UTC)
Hello Alex,

I managed to join the domain by adding -S "DCname" to the join command

kind regards

AndreasAm 02.12.2011 09:38, schrieb Alex King:
> Hi,
> 
> I pulled down samba from git (alpha 18), followed the HOWTO at
> http://wiki.samba.org/index.php/Samba4/HOWTO/...
> 
> Trying to install a DC alongside an existing 2008R2 server with
> Exchange2007.
> 
> 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@ad1:/usr/local/samba# /usr/local/samba/bin/samba-tool domain join
> servers.nzcuexchange.co.nz DC -Uadministrator
> --realm=servers.nzcuexchange.co.nz
> Finding a writeable DC for domain 'servers.nzcuexchange.co.nz'
> ERROR(exception): uncaught exception - Failed to find a writeable DC for
> domain 'servers.nzcuexchange.co.nz'
>   File
> "/usr/local/samba/lib/python2.6/site-packages/samba/netcmd/__init__.py",
> line 167, in _run
>     return self.run(*args, **kwargs)
>   File
> "/usr/local/samba/lib/python2.6/site-packages/samba/netcmd/domain.py",
> line 151, in run
>     machinepass=machinepass)
>   File "/usr/local/samba/lib/python2.6/site-packages/samba/join.py",
> line 921, in join_DC
>     machinepass)
>   File "/usr/local/samba/lib/python2.6/site-packages/samba/join.py",
> line 66, in __init__
>     ctx.server = ctx.find_dc(domain)
>   File "/usr/local/samba/lib/python2.6/site-packages/samba/join.py",
> line 204, in find_dc
>     raise Exception("Failed to find a writeable DC for domain '%s'" %
> domain)
> 
> 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.
> 
> Thanks,
> Alex
>
Home | About | Privacy