summaryrefslogtreecommitdiff
path: root/source4/libcli/ldap/ldap_client.h
diff options
context:
space:
mode:
Diffstat (limited to 'source4/libcli/ldap/ldap_client.h')
-rw-r--r--source4/libcli/ldap/ldap_client.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/source4/libcli/ldap/ldap_client.h b/source4/libcli/ldap/ldap_client.h
index 3f71c42f22..7801f8b6bc 100644
--- a/source4/libcli/ldap/ldap_client.h
+++ b/source4/libcli/ldap/ldap_client.h
@@ -23,7 +23,7 @@
#include "libcli/ldap/ldap.h"
-enum ldap_request_state {LDAP_REQUEST_SEND, LDAP_REQUEST_PENDING, LDAP_REQUEST_DONE};
+enum ldap_request_state { LDAP_REQUEST_SEND=1, LDAP_REQUEST_PENDING=2, LDAP_REQUEST_DONE=3, LDAP_REQUEST_ERROR=4 };
/* this is the handle that the caller gets when an async ldap message
is sent */
@@ -60,6 +60,18 @@ struct ldap_connection {
const char *auth_dn;
const char *simple_pw;
+ struct {
+ char *url;
+ int max_retries;
+ int retries;
+ time_t previous;
+ } reconnect;
+
+ struct {
+ enum { LDAP_BIND_SIMPLE, LDAP_BIND_SASL } type;
+ void *creds;
+ } bind;
+
/* next message id to assign */
unsigned next_messageid;