From afe4b77d35a95d2338094b8cbc96ca421a023413 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 13 Jul 2011 10:28:07 +1000 Subject: s4-dsdb: fixed modify of ACLs on deleted objects this is needed for the dbcheck code Pair-Programmed-With: Andrew Bartlett --- source4/dsdb/samdb/ldb_modules/acl.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source4/dsdb') diff --git a/source4/dsdb/samdb/ldb_modules/acl.c b/source4/dsdb/samdb/ldb_modules/acl.c index 49152d418a..12a4028cbe 100644 --- a/source4/dsdb/samdb/ldb_modules/acl.c +++ b/source4/dsdb/samdb/ldb_modules/acl.c @@ -902,7 +902,8 @@ static int acl_modify(struct ldb_module *module, struct ldb_request *req) } ret = dsdb_module_search_dn(module, tmp_ctx, &acl_res, req->op.mod.message->dn, acl_attrs, - DSDB_FLAG_NEXT_MODULE, req); + DSDB_FLAG_NEXT_MODULE | DSDB_SEARCH_SHOW_DELETED, + req); if (ret != LDB_SUCCESS) { goto fail; @@ -1337,7 +1338,8 @@ static int acl_search_callback(struct ldb_request *req, struct ldb_reply *ares) || ac->sDRightsEffective) { ret = dsdb_module_search_dn(ac->module, ac, &acl_res, ares->message->dn, acl_attrs, - DSDB_FLAG_NEXT_MODULE, req); + DSDB_FLAG_NEXT_MODULE | + DSDB_SEARCH_SHOW_DELETED, req); if (ret != LDB_SUCCESS) { return ldb_module_done(ac->req, NULL, NULL, ret); } -- cgit