Can't join samba4 as domain controller

Juan Pablo Lorier jplorier at gmail.com
Fri May 25 07:34:51 MDT 2012


Hi,

First, sorry for writting to this list but had no luck on general list.

I'm trying to join samba 4 alpha 20 to my windows 2003 AD domain and I 
get this error:

Adding SPNs to CN=SAMBADC1,OU=Domain 
Controllers,DC=montecarlotv,DC=com,DC=uy
Setting account password for SAMBADC1$
Enabling account
Calling bare provision
Join failed - cleaning up
checking sAMAccountName
Deleted CN=SAMBADC1,OU=Domain Controllers,DC=montecarlotv,DC=com,DC=uy
Deleted CN=NTDS 
Settings,CN=SAMBADC1,CN=Servers,CN=Nombre-predeterminado-primer-sitio,CN=Sites,CN=Configuration,DC=montecarlotv,DC=com,DC=uy
Deleted 
CN=SAMBADC1,CN=Servers,CN=Nombre-predeterminado-primer-sitio,CN=Sites,CN=Configuration,DC=montecarlotv,DC=com,DC=uy
ERROR(exceptions.NameError): uncaught exception - global name 'all' is 
not defined
   File 
"/usr/local/samba/lib64/python2.4/site-packages/samba/netcmd/__init__.py", 
line 160, in _run
     return self.run(*args, **kwargs)
   File 
"/usr/local/samba/lib64/python2.4/site-packages/samba/netcmd/domain.py", 
line 179, in run
     machinepass=machinepass)
   File "/usr/local/samba/lib64/python2.4/site-packages/samba/join.py", 
line 964, in join_DC
     ctx.do_join()
   File "/usr/local/samba/lib64/python2.4/site-packages/samba/join.py", 
line 870, in do_join
     ctx.join_provision()
   File "/usr/local/samba/lib64/python2.4/site-packages/samba/join.py", 
line 598, in join_provision
     dns_backend="NONE")
   File 
"/usr/local/samba/lib64/python2.4/site-packages/samba/provision/__init__.py", 
line 1704, in provision
     sitename=sitename, rootdn=rootdn)
   File 
"/usr/local/samba/lib64/python2.4/site-packages/samba/provision/__init__.py", 
line 507, in guess_names
     if not valid_netbios_name(netbiosname):
   File 
"/usr/local/samba/lib64/python2.4/site-packages/samba/__init__.py", line 
310, in valid_netbios_name
     return all([is_valid_netbios_char(x) for x in name])

It's on a Centos 5.6 server. I've removed everything from samba3 as told 
by a post I found with the same error, but still nothing.
Any one had already this problem? Do I need to use Centos 6?
I increased the log level of samba-tool to 7 but nothing called my 
attention(I may not be a good viewer). This is the part of the error and 
this is the output:

Adding SPNs to CN=SAMBADC1,OU=Domain 
Controllers,DC=montecarlotv,DC=com,DC=uy
Setting account password for SAMBADC1$
Enabling account
Calling bare provision
lpcfg_load: refreshing parameters from /usr/local/samba/etc/smb.conf
params.c:pm_process() - Processing configuration file 
"/usr/local/samba/etc/smb.conf"
Processing section "[global]"
Processing section "[netlogon]"
Processing section "[sysvol]"
pm_process() returned Yes
Join failed - cleaning up
checking sAMAccountName
Deleted CN=SAMBADC1,OU=Domain Controllers,DC=montecarlotv,DC=com,DC=uy
Deleted CN=NTDS 
Settings,CN=SAMBADC1,CN=Servers,CN=Nombre-predeterminado-primer-sitio,CN=Sites,CN=Configuration,DC=montecarlotv,DC=com,DC=uy
Deleted 
CN=SAMBADC1,CN=Servers,CN=Nombre-predeterminado-primer-sitio,CN=Sites,CN=Configuration,DC=montecarlotv,DC=com,DC=uy
ERROR(exceptions.NameError): uncaught exception - global name 'all' is 
not defined


Regards,
Juan Pablo Lorier



More information about the samba-technical mailing list