[Samba] Raising domain functionality level with samba-tool fails with uncaught exception errors from Python

Matthieu Patou mat at samba.org
Wed Nov 9 07:37:14 MST 2011


On 08/11/2011 06:50, curriegrad2004 wrote:
> Hey all,
>
> I just downloaded the latest samba4 git and provisioned an Active
> Directory domain following the directions on the wiki. However, when I
> wanted to raise the default domain's functionality level from Windows
> Server 2003 to 2008 R2, I'm getting errors from samba-tool with
> something to do with Python's uncaught exception:
>
> --forest-level
>
> ERROR(<type 'exceptions.AttributeError'>): uncaught exception -
> 'module' object has no attribute 'get_config_basedn'
>    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 326, in run
>      m.dn = ldb.Dn(samdb, "CN=Partitions,%s" % ldb.get_config_basedn())
>
> --domain-level
>
> ERROR(<type 'exceptions.AttributeError'>): uncaught exception -
> 'module' object has no attribute 'get_config_basedn'
>    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 301, in run
>      + ",CN=Partitions,%s" % ldb.get_config_basedn())
It seems that you have an old version of the ldb's python bindings.
Is there any version of ldb and/or its bindings included by default in 
Scientific Linux 6.0 ?

Matthieu

-- 
Matthieu Patou
Samba Team
http://samba.org



More information about the samba mailing list