summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/include
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2006-01-17 04:04:57 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:51:13 -0500
commit3b447ab4a131509491b42a1843c52ba69bab5e11 (patch)
tree377ff3bbcd79a892f24dac1dd02d765748c2e81b /source4/lib/ldb/include
parent1f72942873ee28a17947d2124b885c22f9d83ffc (diff)
downloadsamba-3b447ab4a131509491b42a1843c52ba69bab5e11.tar.gz
samba-3b447ab4a131509491b42a1843c52ba69bab5e11.tar.bz2
samba-3b447ab4a131509491b42a1843c52ba69bab5e11.zip
r12977: Some code to implement the client side of the Dirsync control
Still investigating how it works. Simo. (This used to be commit bebd403523e581606505e05e7cb621efbc22fa36)
Diffstat (limited to 'source4/lib/ldb/include')
-rw-r--r--source4/lib/ldb/include/ldb.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/source4/lib/ldb/include/ldb.h b/source4/lib/ldb/include/ldb.h
index 569bf9d6a5..09f4723f7b 100644
--- a/source4/lib/ldb/include/ldb.h
+++ b/source4/lib/ldb/include/ldb.h
@@ -414,6 +414,14 @@ typedef int (*ldb_qsort_cmp_fn_t) (const void *, const void *, const void *);
*/
#define LDB_CONTROL_ASQ_OID "1.2.840.113556.1.4.1504"
+/**
+ OID for LDAPrectory Sync extension.
+
+ This control is include in SearchRequest or SearchResponse
+ messages as part of the controls field of the LDAPMessage.
+*/
+#define LDB_CONTROL_DIRSYNC_OID "1.2.840.113556.1.4.841"
+
struct ldb_paged_control {
int size;
@@ -443,6 +451,13 @@ struct ldb_asq_control {
int result;
};
+struct ldb_dirsync_control {
+ int flags;
+ int max_attributes;
+ int cookie_len;
+ char *cookie;
+};
+
struct ldb_control {
const char *oid;
int critical;