s4:dbchecker: make use of local_oid controls for dsdb.DSDB_CONTROL_DBCHECK
authorStefan Metzmacher <metze@samba.org>
Fri, 7 Oct 2011 07:57:34 +0000 (09:57 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 7 Oct 2011 10:20:49 +0000 (12:20 +0200)
metze

source4/scripting/python/samba/dbchecker.py

index f19891a8d9536f784c47352a6b568fd5de5db953..8120307dfa01ce1630fa59018052874de00bb4e4 100644 (file)
@@ -211,7 +211,7 @@ class dbcheck(object):
         m = ldb.Message()
         m.dn = dn
         m['old_value'] = ldb.MessageElement(val, ldb.FLAG_MOD_DELETE, attrname)
-        if self.do_modify(m, ["show_recycled:1", "%s:0" % dsdb.DSDB_CONTROL_DBCHECK],
+        if self.do_modify(m, ["show_recycled:1", "local_oid:%s:0" % dsdb.DSDB_CONTROL_DBCHECK],
                           "Failed to remove deleted DN attribute %s" % attrname):
             self.report("Removed deleted DN on attribute %s" % attrname)