Samba 4 to AD join fail, help

Juan Pablo Lorier jplorier at
Thu Jan 26 04:50:41 MST 2012

Hi there,

I'm a newy at samba 4 and I'm trying to joing a samba 4
alpha 17 box to our domain as a DC so I can "drain" the domain info and
use the linux box to test samba without disturbing the domain itself.
The thing is that I get an error when trying to join the server :

[root at vpdc samba]# bin/samba-tool domain join DC -Uadministrador
Finding a writeable DC for domain ''
Found DC
Password for [WORKGROUP\administrador]:
workgroup is CANAL4
realm is
checking samaccountname
Adding CN=VPDC,OU=Domain Controllers,DC=montecarlotv,DC=com,DC=uy
Adding CN=VPDC,CN=Servers,CN=Nombre-predeterminado-primer-sitio,CN=Sites,CN=Configuration,DC=montecarlotv,DC=com,DC=uy
DsAddEntry failed with status (5, 'WERR_ACCESS_DENIED') info (8567, 'WERR_DS_INCOMPATIBLE_VERSION')
Join failed - cleaning up
checking samaccountname
Deleted CN=VPDC,OU=Domain Controllers,DC=montecarlotv,DC=com,DC=uy
Deleted CN=VPDC,CN=Servers,CN=Nombre-predeterminado-primer-sitio,CN=Sites,CN=Configuration,DC=montecarlotv,DC=com,DC=uy
ERROR(runtime): uncaught exception - DsAddEntry failed
  File "/usr/local/samba/lib64/python2.6/site-packages/samba/netcmd/", line 167, in _run
    return*args, **kwargs)
  File "/usr/local/samba/lib64/python2.6/site-packages/samba/netcmd/", line 162, in run
  File "/usr/local/samba/lib64/python2.6/site-packages/samba/", line 949, in join_DC
  File "/usr/local/samba/lib64/python2.6/site-packages/samba/", line 854, in do_join
  File "/usr/local/samba/lib64/python2.6/site-packages/samba/", line 467, in join_add_objects
  File "/usr/local/samba/lib64/python2.6/site-packages/samba/", line 416, in join_add_ntdsdsa
  File "/usr/local/samba/lib64/python2.6/site-packages/samba/", line 379, in DsAddEntry
    raise RuntimeError("DsAddEntry failed")

only thing that calls my atention is that instead of asking for 
CANAL4\administrador password is asking WORKGROUP\administrador.
Any Ideas?

More information about the samba-technical mailing list