diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/util.c | 7 | ||||
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/util.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/util.c b/source4/dsdb/samdb/ldb_modules/util.c index b0f22de255..fe6ddfa9b0 100644 --- a/source4/dsdb/samdb/ldb_modules/util.c +++ b/source4/dsdb/samdb/ldb_modules/util.c @@ -74,6 +74,13 @@ int dsdb_module_search_handle_flags(struct ldb_module *module, struct ldb_reques } } + if (dsdb_flags & DSDB_SEARCH_REVEAL_INTERNALS) { + ret = ldb_request_add_control(req, LDB_CONTROL_REVEAL_INTERNALS, false, NULL); + if (ret != LDB_SUCCESS) { + return ret; + } + } + return LDB_SUCCESS; } diff --git a/source4/dsdb/samdb/ldb_modules/util.h b/source4/dsdb/samdb/ldb_modules/util.h index b612c64acc..56db27d498 100644 --- a/source4/dsdb/samdb/ldb_modules/util.h +++ b/source4/dsdb/samdb/ldb_modules/util.h @@ -24,4 +24,5 @@ #define DSDB_SEARCH_SEARCH_ALL_PARTITIONS 0x0001 #define DSDB_SEARCH_SHOW_DELETED 0x0002 #define DSDB_SEARCH_SHOW_DN_IN_STORAGE_FORMAT 0x0004 +#define DSDB_SEARCH_REVEAL_INTERNALS 0x0008 #define DSDB_SEARCH_SHOW_EXTENDED_DN 0x0010 |