diff options
author | Arvid Requate <requate@univention.de> | 2012-11-14 15:51:19 +0100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-11-16 00:40:24 +0100 |
commit | ace0909b88739338e948b9c1e98307f324bb7503 (patch) | |
tree | ff5d033bf46b33f301485b4e404fbc363d9e2214 /source4/scripting | |
parent | 256391c0faf4ff4d408821e3fe8cfe2eff44c043 (diff) | |
download | samba-ace0909b88739338e948b9c1e98307f324bb7503.tar.gz samba-ace0909b88739338e948b9c1e98307f324bb7503.tar.bz2 samba-ace0909b88739338e948b9c1e98307f324bb7503.zip |
s4:samba-tool: Fix samba-tool fsmo --role=schema
Fix traceback:
samba-tool fsmo --role=schema --force
ERROR(<type 'exceptions.TypeError'>): uncaught exception - argument 2 must be string, not ldb.Dn
File "/usr/lib/python2.6/dist-packages/samba/netcmd/__init__.py", line 168, in _run
return self.run(*args, **kwargs)
File "/usr/lib/python2.6/dist-packages/samba/netcmd/fsmo.py", line 160, in run
self.seize_role(role, samdb, force)
File "/usr/lib/python2.6/dist-packages/samba/netcmd/fsmo.py", line 119, in seize_role
m.dn = ldb.Dn(samdb, self.schema_dn)
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Fri Nov 16 00:40:24 CET 2012 on sn-devel-104
Diffstat (limited to 'source4/scripting')
-rw-r--r-- | source4/scripting/python/samba/netcmd/fsmo.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/python/samba/netcmd/fsmo.py b/source4/scripting/python/samba/netcmd/fsmo.py index 15d1d496a2..c938c915fa 100644 --- a/source4/scripting/python/samba/netcmd/fsmo.py +++ b/source4/scripting/python/samba/netcmd/fsmo.py @@ -103,7 +103,7 @@ all=all of the above"""), domain_dn = samdb.domain_dn() self.infrastructure_dn = "CN=Infrastructure," + domain_dn self.naming_dn = "CN=Partitions,%s" % samdb.get_config_basedn() - self.schema_dn = samdb.get_schema_basedn() + self.schema_dn = str(samdb.get_schema_basedn()) self.rid_dn = "CN=RID Manager$,CN=System," + domain_dn m = ldb.Message() |