summaryrefslogtreecommitdiff
path: root/source4/dsdb
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2012-04-18 15:45:31 +1000
committerAndrew Tridgell <tridge@samba.org>2012-04-18 07:48:05 +0200
commit997a22e7bf0711ce209885c408c6dd26391d7e16 (patch)
tree717a93e23cdc566413686acb06051dc241fbc9a0 /source4/dsdb
parent2eb899de6a2bdf1aac1c1f010a6d2b5b02f9de39 (diff)
downloadsamba-997a22e7bf0711ce209885c408c6dd26391d7e16.tar.gz
samba-997a22e7bf0711ce209885c408c6dd26391d7e16.tar.bz2
samba-997a22e7bf0711ce209885c408c6dd26391d7e16.zip
dsdb: added SHOW_DELETED to samldb_member_check()
when dbcheck is fixing DNs, it will sometimes operated on a deleted DN link Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/dsdb')
-rw-r--r--source4/dsdb/samdb/ldb_modules/samldb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/samldb.c b/source4/dsdb/samdb/ldb_modules/samldb.c
index 79ab1f85ce..390d9213f5 100644
--- a/source4/dsdb/samdb/ldb_modules/samldb.c
+++ b/source4/dsdb/samdb/ldb_modules/samldb.c
@@ -1683,7 +1683,7 @@ static int samldb_member_check(struct samldb_ctx *ac)
/* Fetch information from the existing object */
ret = dsdb_module_search(ac->module, ac, &res, ac->msg->dn, LDB_SCOPE_BASE, attrs,
- DSDB_FLAG_NEXT_MODULE, ac->req, NULL);
+ DSDB_FLAG_NEXT_MODULE | DSDB_SEARCH_SHOW_DELETED, ac->req, NULL);
if (ret != LDB_SUCCESS) {
return ret;
}