summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-06-20 18:43:58 +0200
committerVolker Lendecke <vl@samba.org>2009-06-20 18:54:07 +0200
commit4aade2768b40b805b50578ec6fa99fe57525b147 (patch)
tree35a6f10deaafbc394cf03fd3f29f07f7342da1f6 /source3/include
parenta3eb0a32a9f36cc9799e11e43f4b95fa0df272a9 (diff)
downloadsamba-4aade2768b40b805b50578ec6fa99fe57525b147.tar.gz
samba-4aade2768b40b805b50578ec6fa99fe57525b147.tar.bz2
samba-4aade2768b40b805b50578ec6fa99fe57525b147.zip
Add tldap paged searches, together with two helper routines
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/tldap.h2
-rw-r--r--source3/include/tldap_util.h27
2 files changed, 29 insertions, 0 deletions
diff --git a/source3/include/tldap.h b/source3/include/tldap.h
index 27027c1f25..1d920f8adc 100644
--- a/source3/include/tldap.h
+++ b/source3/include/tldap.h
@@ -273,4 +273,6 @@ void tldap_set_debug(struct tldap_context *ld,
#define TLDAP_SCOPE_ONE (1)
#define TLDAP_SCOPE_SUB (2)
+#define TLDAP_CONTROL_PAGEDRESULTS "1.2.840.113556.1.4.319"
+
#endif
diff --git a/source3/include/tldap_util.h b/source3/include/tldap_util.h
index eb6b8f6d22..9b0393eefc 100644
--- a/source3/include/tldap_util.h
+++ b/source3/include/tldap_util.h
@@ -66,4 +66,31 @@ bool tldap_entry_has_attrvalue(struct tldap_message *msg,
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