diff options
author | Andrew Bartlett <abartlet@samba.org> | 2009-11-16 18:32:17 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2009-11-17 10:38:01 +1100 |
commit | 41ce3dc0c3cbfdf06f0ffd3738c34ff8c22f450e (patch) | |
tree | c2b99329d1dc42e05443bb7b3b3949390debcf93 /source4/dsdb/samdb/ldb_modules/extended_dn_store.c | |
parent | a2a8dc515cca833c442cc3bb4cf90682e8ba147d (diff) | |
download | samba-41ce3dc0c3cbfdf06f0ffd3738c34ff8c22f450e.tar.gz samba-41ce3dc0c3cbfdf06f0ffd3738c34ff8c22f450e.tar.bz2 samba-41ce3dc0c3cbfdf06f0ffd3738c34ff8c22f450e.zip |
s4:dsdb Add 'dsdb_flags' to dsdb_module_search() to enable often-used features
These flags, also on dsdb_module_search_dn() allow us to add commonly
set controls to this pre-packaged blocking search, without rebuilding
the whole function in each caller.
Andrew Bartlett
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules/extended_dn_store.c')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/extended_dn_store.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/extended_dn_store.c b/source4/dsdb/samdb/ldb_modules/extended_dn_store.c index 557acf2d82..3a531c00a5 100644 --- a/source4/dsdb/samdb/ldb_modules/extended_dn_store.c +++ b/source4/dsdb/samdb/ldb_modules/extended_dn_store.c @@ -42,7 +42,7 @@ #include "librpc/gen_ndr/ndr_misc.h" #include "dsdb/samdb/samdb.h" #include "libcli/security/security.h" - +#include "dsdb/samdb/ldb_modules/util.h" #include <time.h> struct extended_dn_replace_list { @@ -275,9 +275,8 @@ static int extended_store_replace(struct extended_dn_context *ac, return ret; } - ret = ldb_request_add_control(os->search_req, - DSDB_CONTROL_DN_STORAGE_FORMAT_OID, - true, NULL); + ret = dsdb_module_search_handle_flags(ac->module, os->search_req, + DSDB_SEARCH_SHOW_DELETED|DSDB_SEARCH_SHOW_DN_IN_STORAGE_FORMAT); if (ret != LDB_SUCCESS) { talloc_free(os); return ret; |