summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-11-21 07:14:31 +0100
committerMichael Adam <obnox@samba.org>2012-11-30 17:17:20 +0100
commit1cdecf1234bffc37a9898b666371b2dd25ad158d (patch)
tree1db5164a2cfeca505d2e62d7fdacb63a922d5fc5
parent8d900d06ff89136016ef2f139d6c33b306c87e93 (diff)
downloadsamba-1cdecf1234bffc37a9898b666371b2dd25ad158d.tar.gz
samba-1cdecf1234bffc37a9898b666371b2dd25ad158d.tar.bz2
samba-1cdecf1234bffc37a9898b666371b2dd25ad158d.zip
s4:dsdb/acl_util: do helper searches AS_SYSTEM
The search is done in order to do access checks. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
-rw-r--r--source4/dsdb/samdb/ldb_modules/acl_util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/acl_util.c b/source4/dsdb/samdb/ldb_modules/acl_util.c
index 50bf888691..c25979de8d 100644
--- a/source4/dsdb/samdb/ldb_modules/acl_util.c
+++ b/source4/dsdb/samdb/ldb_modules/acl_util.c
@@ -74,6 +74,7 @@ int dsdb_module_check_access_on_dn(struct ldb_module *module,
ret = dsdb_module_search_dn(module, mem_ctx, &acl_res, dn,
acl_attrs,
DSDB_FLAG_NEXT_MODULE |
+ DSDB_FLAG_AS_SYSTEM |
DSDB_SEARCH_SHOW_RECYCLED,
parent);
if (ret != LDB_SUCCESS) {