summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb/ldb_modules/extended_dn_store.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-11-21 09:33:53 +0100
committerMichael Adam <obnox@samba.org>2012-11-30 17:17:20 +0100
commit8d900d06ff89136016ef2f139d6c33b306c87e93 (patch)
tree3a30219ae707d90faf7623dfb16893130377e03b /source4/dsdb/samdb/ldb_modules/extended_dn_store.c
parent659277a89dfd4226db9ea44709010ad7e3768fd6 (diff)
downloadsamba-8d900d06ff89136016ef2f139d6c33b306c87e93.tar.gz
samba-8d900d06ff89136016ef2f139d6c33b306c87e93.tar.bz2
samba-8d900d06ff89136016ef2f139d6c33b306c87e93.zip
s4:dsdb/extended_dn_store: do helper searches AS_SYSTEM
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules/extended_dn_store.c')
-rw-r--r--source4/dsdb/samdb/ldb_modules/extended_dn_store.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/extended_dn_store.c b/source4/dsdb/samdb/ldb_modules/extended_dn_store.c
index 57dc88330d..28ad9d01a8 100644
--- a/source4/dsdb/samdb/ldb_modules/extended_dn_store.c
+++ b/source4/dsdb/samdb/ldb_modules/extended_dn_store.c
@@ -276,7 +276,9 @@ static int extended_store_replace(struct extended_dn_context *ac,
}
ret = dsdb_request_add_controls(os->search_req,
- DSDB_SEARCH_SHOW_RECYCLED|DSDB_SEARCH_SHOW_DN_IN_STORAGE_FORMAT);
+ DSDB_FLAG_AS_SYSTEM |
+ DSDB_SEARCH_SHOW_RECYCLED |
+ DSDB_SEARCH_SHOW_DN_IN_STORAGE_FORMAT);
if (ret != LDB_SUCCESS) {
talloc_free(os);
return ret;