diff options
author | Andrew Tridgell <tridge@samba.org> | 2011-09-23 17:37:23 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2011-10-04 15:08:56 +1100 |
commit | 5d4f474b58e209f171bd5976242db4a1dc2af2ee (patch) | |
tree | beb591fd5b54cabb1605214fd1ba7316003a6dae /source4 | |
parent | ac581b3374188b5d6171b5f90fb3d0a103201475 (diff) | |
download | samba-5d4f474b58e209f171bd5976242db4a1dc2af2ee.tar.gz samba-5d4f474b58e209f171bd5976242db4a1dc2af2ee.tar.bz2 samba-5d4f474b58e209f171bd5976242db4a1dc2af2ee.zip |
s4-dbchecker: fixed handling of DSDB DNs in dbcheck
we need to use the original value, as ldb.Dn() can't parse a DSDB
binary DN
Diffstat (limited to 'source4')
-rw-r--r-- | source4/scripting/python/samba/dbchecker.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/python/samba/dbchecker.py b/source4/scripting/python/samba/dbchecker.py index 03303b8ab6..ea5a9030c6 100644 --- a/source4/scripting/python/samba/dbchecker.py +++ b/source4/scripting/python/samba/dbchecker.py @@ -256,7 +256,7 @@ class dbcheck(object): return m = ldb.Message() m.dn = dn - m['old_value'] = ldb.MessageElement(str(ldb.Dn(self.samdb, val)), ldb.FLAG_MOD_DELETE, attrname) + m['old_value'] = ldb.MessageElement(val, ldb.FLAG_MOD_DELETE, attrname) m['new_value'] = ldb.MessageElement(str(dsdb_dn), ldb.FLAG_MOD_ADD, attrname) if self.do_modify(m, ["show_recycled:1"], "Failed to fix incorrect DN string on attribute %s" % attrname): |