From 3cbc33727f2a39f8f1f97033023dfb7674d77ceb Mon Sep 17 00:00:00 2001 From: Arvid Requate Date: Wed, 14 Nov 2012 15:51:19 +0100 Subject: [PATCH] s4:samba-tool: Fix samba-tool fsmo --role=schema Fix traceback: samba-tool fsmo --role=schema --force ERROR(): 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) --- source4/scripting/python/samba/netcmd/fsmo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/scripting/python/samba/netcmd/fsmo.py b/source4/scripting/python/samba/netcmd/fsmo.py index 15d1d49..c938c91 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() -- 1.7.10.4