From 4a9f5d759f0b244fb27ea8a01455b5fd0a43c334 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 5 Sep 2011 11:09:14 +1000 Subject: s4-provision Fix type error on existing idmap entries in s3 upgrade This is already a DN object. Andrew Bartlett --- source4/scripting/python/samba/upgrade.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4') diff --git a/source4/scripting/python/samba/upgrade.py b/source4/scripting/python/samba/upgrade.py index aaadb6a418..284e8a6ea9 100644 --- a/source4/scripting/python/samba/upgrade.py +++ b/source4/scripting/python/samba/upgrade.py @@ -89,7 +89,7 @@ def add_idmap_entry(idmapdb, sid, xid, xid_type, logger): if found: try: m = ldb.Message() - m.dn = ldb.Dn(idmapdb, msg[0]['dn']) + m.dn = msg[0]['dn'] m['xidNumber'] = ldb.MessageElement(str(xid), ldb.FLAG_MOD_REPLACE, 'xidNumber') m['type'] = ldb.MessageElement(xid_type, ldb.FLAG_MOD_REPLACE, 'type') idmapdb.modify(m) -- cgit