mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +03:00
dbcheck: use string DN in delete when fixing broken strings DNs
this prevents the extended_dn_in module from 'fixing' the DN for us Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
a656b189b8
commit
6257994848
@ -246,7 +246,7 @@ class dbcheck(object):
|
|||||||
return
|
return
|
||||||
m = ldb.Message()
|
m = ldb.Message()
|
||||||
m.dn = dn
|
m.dn = dn
|
||||||
m['old_value'] = ldb.MessageElement(val, ldb.FLAG_MOD_DELETE, attrname)
|
m['old_value'] = ldb.MessageElement(str(ldb.Dn(self.samdb, val)), ldb.FLAG_MOD_DELETE, attrname)
|
||||||
m['new_value'] = ldb.MessageElement(str(dsdb_dn), ldb.FLAG_MOD_ADD, attrname)
|
m['new_value'] = ldb.MessageElement(str(dsdb_dn), ldb.FLAG_MOD_ADD, attrname)
|
||||||
if self.do_modify(m, ["show_deleted:1"],
|
if self.do_modify(m, ["show_deleted:1"],
|
||||||
"Failed to fix incorrect DN string on attribute %s" % attrname):
|
"Failed to fix incorrect DN string on attribute %s" % attrname):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user