Can't join samba4 as domain controller

Juan Pablo Lorier jplorier at gmail.com
Fri May 25 07:53:37 MDT 2012


El 25/05/12 10:43, Andrew Bartlett escribió:
> On Fri, 2012-05-25 at 10:34 -0300, Juan Pablo Lorier wrote:
>> 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:
> My first guess is that 'all' isn't defined in Python 2.4, which is the
> version on RHEL 5.  We probably just need to change the syntax to
> something Python 2.4 compatible.
>
> But if you can, you might want to upgrade to CentOS 6, before you start.
>
> Andrew Bartlett
>
Thanks Andrew for such a fast response.
I'll try install in over Centos 6 to see what happens and I'll let you 
know (most likely next week)
Regards,

Juan Pablo Lorier


More information about the samba-technical mailing list