dsdb: added SHOW_DELETED to samldb_member_check()
authorAndrew Tridgell <tridge@samba.org>
Wed, 18 Apr 2012 05:45:31 +0000 (15:45 +1000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 18 Apr 2012 05:48:05 +0000 (07:48 +0200)
when dbcheck is fixing DNs, it will sometimes operated on a deleted DN
link

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

source4/dsdb/samdb/ldb_modules/samldb.c

index 79ab1f85ce5fa34341de6e9c8113e5f5db00717b..390d9213f59d649ad5bb2cb225d5d29202d12a58 100644 (file)
@@ -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;
        }