s4-dsdb: added REVEAL_INTERNALS flag to dsdb_module_search_handle_flags()
authorAndrew Tridgell <tridge@samba.org>
Mon, 14 Dec 2009 10:53:40 +0000 (21:53 +1100)
committerAndrew Tridgell <tridge@samba.org>
Mon, 14 Dec 2009 11:29:58 +0000 (22:29 +1100)
source4/dsdb/samdb/ldb_modules/util.c
source4/dsdb/samdb/ldb_modules/util.h

index b0f22de2559cc313e5933e0a0cfe5e9658f0baa0..fe6ddfa9b09889f65a1e163e51f24be60693e16f 100644 (file)
@@ -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;
 }
 
index b612c64acc4630c4f3dc6fdf5d23edfde91fa2fd..56db27d4985dbb403956da79a8e0c95ad78d286e 100644 (file)
@@ -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