1
0
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:
Matthieu Patou
2011-11-13 13:15:47 +01:00
parent 691fb365f8
commit a6686b9f98

View File

@ -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)