summaryrefslogtreecommitdiff
path: root/source4/libcli/ldap/ldap.h
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2004-08-20 07:39:19 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:58:13 -0500
commit333aaf01e8dc1aba8cb7bba3e8fa792ff136e647 (patch)
treef27c526273e584a4d3b6f4c93e3eb0647812d779 /source4/libcli/ldap/ldap.h
parent5a5f9c8aa792a586350ec8c9f2754679eb857b8a (diff)
downloadsamba-333aaf01e8dc1aba8cb7bba3e8fa792ff136e647.tar.gz
samba-333aaf01e8dc1aba8cb7bba3e8fa792ff136e647.tar.bz2
samba-333aaf01e8dc1aba8cb7bba3e8fa792ff136e647.zip
r1944: put ldif functions in a separate file
(This used to be commit 8be31e5c854e4462163b97b897ff41de95f181c4)
Diffstat (limited to 'source4/libcli/ldap/ldap.h')
-rw-r--r--source4/libcli/ldap/ldap.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/source4/libcli/ldap/ldap.h b/source4/libcli/ldap/ldap.h
index da844afa3e..449be9e015 100644
--- a/source4/libcli/ldap/ldap.h
+++ b/source4/libcli/ldap/ldap.h
@@ -254,4 +254,33 @@ struct ldap_connection {
struct gensec_security *gensec;
};
+/* Hmm. A blob might be more appropriate here :-) */
+
+struct ldap_val {
+ unsigned int length;
+ void *data;
+};
+
+enum ldap_parse_op {LDAP_OP_SIMPLE, LDAP_OP_AND, LDAP_OP_OR, LDAP_OP_NOT};
+
+struct ldap_parse_tree {
+ enum ldap_parse_op operation;
+ union {
+ struct {
+ char *attr;
+ struct ldap_val value;
+ } simple;
+ struct {
+ unsigned int num_elements;
+ struct ldap_parse_tree **elements;
+ } list;
+ struct {
+ struct ldap_parse_tree *child;
+ } not;
+ } u;
+};
+
+#define LDAP_ALL_SEP "()&|=!"
+#define LDAP_CONNECTION_TIMEOUT 10000
+
#endif