Add tldap_search_va
[metze/samba/wip.git] / source3 / include / tldap_util.h
index 8869d1e9de3b1dc8148a221e898867e6d242168a..f257afc0b02f27b2ade5eee9ced46595f30036b1 100644 (file)
@@ -45,6 +45,10 @@ bool tldap_make_mod_fmt(struct tldap_message *existing, TALLOC_CTX *mem_ctx,
 
 const char *tldap_errstr(TALLOC_CTX *mem_ctx, struct tldap_context *ld,
                         int rc);
+int tldap_search_va(struct tldap_context *ld, const char *base, int scope,
+                   const char *attrs[], int num_attrs, int attrsonly,
+                   TALLOC_CTX *mem_ctx, struct tldap_message ***res,
+                   const char *fmt, va_list ap);
 int tldap_search_fmt(struct tldap_context *ld, const char *base, int scope,
                     const char *attrs[], int num_attrs, int attrsonly,
                     TALLOC_CTX *mem_ctx, struct tldap_message ***res,
@@ -61,4 +65,36 @@ int tldap_fetch_rootdse_recv(struct tevent_req *req);
 int tldap_fetch_rootdse(struct tldap_context *ld);
 struct tldap_message *tldap_rootdse(struct tldap_context *ld);
 
+bool tldap_entry_has_attrvalue(struct tldap_message *msg,
+                              const char *attribute,
+                              const DATA_BLOB blob);
+bool tldap_supports_control(struct tldap_context *ld, const char *oid);
+
+struct tldap_control *tldap_add_control(TALLOC_CTX *mem_ctx,
+                                       struct tldap_control *ctrls,
+                                       int num_ctrls,
+                                       struct tldap_control *ctrl);
+struct tldap_control *tldap_msg_findcontrol(struct tldap_message *msg,
+                                           const char *oid);
+
+struct tevent_req *tldap_search_paged_send(TALLOC_CTX *mem_ctx,
+                                          struct tevent_context *ev,
+                                          struct tldap_context *ld,
+                                          const char *base, int scope,
+                                          const char *filter,
+                                          const char **attrs,
+                                          int num_attrs,
+                                          int attrsonly,
+                                          struct tldap_control *sctrls,
+                                          int num_sctrls,
+                                          struct tldap_control *cctrls,
+                                          int num_cctrls,
+                                          int timelimit,
+                                          int sizelimit,
+                                          int deref,
+                                          int page_size);
+int tldap_search_paged_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
+                           struct tldap_message **pmsg);
+
+
 #endif