summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/include/ldb_module.h
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2009-10-21 15:20:26 +1100
committerAndrew Bartlett <abartlet@samba.org>2009-10-21 22:43:56 +1100
commitbd53628c7a7d430878588666372dc73f1a88b7de (patch)
treebe122150ebd4b648905e71de06e3f8307f05194c /source4/lib/ldb/include/ldb_module.h
parentfcbe6163f65ae9e4fce9228434c447ad34943010 (diff)
downloadsamba-bd53628c7a7d430878588666372dc73f1a88b7de.tar.gz
samba-bd53628c7a7d430878588666372dc73f1a88b7de.tar.bz2
samba-bd53628c7a7d430878588666372dc73f1a88b7de.zip
s4:ldb Add new function to create a cut down list of controls
This I hope will be useful for removing controls from the ldb_reply Andrew Bartlett
Diffstat (limited to 'source4/lib/ldb/include/ldb_module.h')
-rw-r--r--source4/lib/ldb/include/ldb_module.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/lib/ldb/include/ldb_module.h b/source4/lib/ldb/include/ldb_module.h
index 7a125ba211..6061c4d240 100644
--- a/source4/lib/ldb/include/ldb_module.h
+++ b/source4/lib/ldb/include/ldb_module.h
@@ -101,6 +101,12 @@ void ldb_schema_attribute_set_override_handler(struct ldb_context *ldb,
/* The following definitions come from lib/ldb/common/ldb_controls.c */
struct ldb_control *get_control_from_list(struct ldb_control **controls, const char *oid);
int save_controls(struct ldb_control *exclude, struct ldb_request *req, struct ldb_control ***saver);
+/* Returns a list of controls, except the one specified. Included
+ * controls become a child of returned list if they were children of
+ * controls_in */
+struct ldb_control **controls_except_specified(struct ldb_control **controls_in,
+ TALLOC_CTX *mem_ctx,
+ struct ldb_control *exclude);
int check_critical_controls(struct ldb_control **controls);
/* The following definitions come from lib/ldb/common/ldb_ldif.c */