summaryrefslogtreecommitdiff
path: root/source4/dsdb
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-12-14 21:53:40 +1100
committerAndrew Tridgell <tridge@samba.org>2009-12-14 22:29:58 +1100
commit9260396bbc9651ca44c6348c5fe1e6ccc464ab13 (patch)
treeb0d0b31f1eb1a1b519ba98c283e4fb69854c5a14 /source4/dsdb
parent7f6b524bf6e1a5eeed3df48b791db43cf4052608 (diff)
downloadsamba-9260396bbc9651ca44c6348c5fe1e6ccc464ab13.tar.gz
samba-9260396bbc9651ca44c6348c5fe1e6ccc464ab13.tar.bz2
samba-9260396bbc9651ca44c6348c5fe1e6ccc464ab13.zip
s4-dsdb: added REVEAL_INTERNALS flag to dsdb_module_search_handle_flags()
Diffstat (limited to 'source4/dsdb')
-rw-r--r--source4/dsdb/samdb/ldb_modules/util.c7
-rw-r--r--source4/dsdb/samdb/ldb_modules/util.h1
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