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

November 08th, 2011 - 01:00 am ET by curriegrad2004 | Report spam
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:


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())


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())


What can be causing this issue? Is it the python included with
Scientific Linux 6.0 the one to blame or did I compile samba4
incorrectly in any way?
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
email Follow the discussionReplies 1 replyReplies Make a reply

Replies

#1 Matthieu Patou
November 09th, 2011 - 09:40 am ET | Report spam
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:


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())


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

To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba

Similar topics