curriegrad2004
2011-Nov-08 05:50 UTC
[Samba] Raising domain functionality level with samba-tool fails with uncaught exception errors from Python
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()) 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?
Matthieu Patou
2011-Nov-09 14:37 UTC
[Samba] Raising domain functionality level with samba-tool fails with uncaught exception errors from Python
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
Apparently Analagous Threads
- Classicupgrade not work
- ClassicUpgrade: ERROR(<type 'exceptions.ValueError'>): uncaught exception - zero length field name in format
- ClassicUpgrade: ERROR(<type 'exceptions.ValueError'>): uncaught exception - zero length field name in format
- ClassicUpgrade: ERROR(<type 'exceptions.ValueError'>): uncaught exception - zero length field name in format
- Issue with getCPUStats and getMemoryStats