summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-12-05 09:19:25 +0000
committerAndrew Tridgell <tridge@samba.org>2001-12-05 09:19:25 +0000
commit5d41807f4d6b80dd1c51ce2764521a2a38c88936 (patch)
tree59882b92fdfabe2d3e5190d7aa8bf9bbc213656b /source3/include
parentaddea9645d48bc77f88ed3fa724cdd522e2f31ce (diff)
downloadsamba-5d41807f4d6b80dd1c51ce2764521a2a38c88936.tar.gz
samba-5d41807f4d6b80dd1c51ce2764521a2a38c88936.tar.bz2
samba-5d41807f4d6b80dd1c51ce2764521a2a38c88936.zip
added timeouts and retries to ldap operations
(This used to be commit 4f004eb54d66b6f811cb2f4791da6c70d77f87c2)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/ads.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/include/ads.h b/source3/include/ads.h
index 49dcdd9a43..36351c1c2b 100644
--- a/source3/include/ads.h
+++ b/source3/include/ads.h
@@ -11,9 +11,16 @@ typedef struct {
char *kdc_server;
int ldap_port;
char *bind_path;
+ time_t last_attempt;
} ADS_STRUCT;
+/* time between reconnect attempts */
+#define ADS_RECONNECT_TIME 5
+
+/* timeout on searches */
+#define ADS_SEARCH_TIMEOUT 10
+
#define UF_DONT_EXPIRE_PASSWD 0x10000
#define UF_MNS_LOGON_ACCOUNT 0x20000
#define UF_SMARTCARD_REQUIRED 0x40000