mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
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
This commit is contained in:
parent
ac581b3374
commit
5d4f474b58
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user