mirror of
https://github.com/samba-team/samba.git
synced 2025-07-28 11:42:03 +03:00
samba-tool: dbcheck avoid problems with deleted objects
We have to search for deleted objects as well as the previous search might have been done with the show_deleted control. If not samba-tool fails with no such DN error while fetching the object.
This commit is contained in:
@ -407,7 +407,7 @@ class dbcheck(object):
|
||||
attrs.append("replPropertyMetaData")
|
||||
|
||||
res = self.samdb.search(base=dn, scope=ldb.SCOPE_BASE,
|
||||
controls=["extended_dn:1:1", "show_recycled:1"],
|
||||
controls=["extended_dn:1:1", "show_recycled:1", "show_deleted:1"],
|
||||
attrs=attrs)
|
||||
if len(res) != 1:
|
||||
self.report("Object %s disappeared during check" % dn)
|
||||
|
Reference in New Issue
Block a user