]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ldb: Add new internal helper function ldb_options_get()
authorGary Lockyer <gary@catalyst.net.nz>
Thu, 4 Jul 2019 04:44:21 +0000 (16:44 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 4 Jul 2019 10:02:23 +0000 (10:02 +0000)
This is needed for modules to access the ldb->options array, as this in in ldb_private.h

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/ldb/common/ldb_options.c
lib/ldb/include/ldb_module.h

index 0aa80f7515970e73332b2812be99c5a3bc294424..ee8c7283ada245e8f068bc2223a00d151acec549 100644 (file)
@@ -100,3 +100,8 @@ const char **ldb_options_copy(TALLOC_CTX *ctx, const char *options[])
        }
        return copy;
 }
+
+const char **ldb_options_get(struct ldb_context *ldb)
+{
+       return ldb->options;
+}
index 7f8b57dfeec3c79cc60253de2b109fd34f21adc4..ab3d25c5c6ef069887bbc468656cb9ec610f7840 100644 (file)
@@ -582,4 +582,11 @@ int ldb_unpack_get_format(const struct ldb_val *data,
  */
 void ldb_handle_use_global_event_context(struct ldb_handle *handle);
 
+/**
+ * Get the options passed to ldb_connect.
+ *
+ * This allows the options to be inspected by elements in the module stack
+ *
+ */
+const char **ldb_options_get(struct ldb_context *ldb);
 #endif