summaryrefslogtreecommitdiffstats
path: root/src/util/sss_ldap.h
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2011-08-15 17:46:04 +0200
committerStephen Gallagher <sgallagh@redhat.com>2011-08-15 15:21:18 -0400
commit5bf2314b9f64099cd4e88b8f3498d986d97e1ac6 (patch)
treee9b1aa6f15b09b6da395438cf2711ed7db0ad3fa /src/util/sss_ldap.h
parent0e27817133b931dcbe9d196e9ed0d737164ba613 (diff)
downloadsssd-5bf2314b9f64099cd4e88b8f3498d986d97e1ac6.tar.gz
sssd-5bf2314b9f64099cd4e88b8f3498d986d97e1ac6.tar.xz
sssd-5bf2314b9f64099cd4e88b8f3498d986d97e1ac6.zip
Handle timeout during sss_ldap_init_send
In some cases, where there would be no response from the LDAP server, there would be no R/W events on the LDAP fd, so sdap_async_sys_connect_done would never be called. This patch adds a tevent timer that cancels the connection after SDAP_NETWORK_TIMEOUT seconds.
Diffstat (limited to 'src/util/sss_ldap.h')
-rw-r--r--src/util/sss_ldap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/sss_ldap.h b/src/util/sss_ldap.h
index ab890293c..4b4d9c1bd 100644
--- a/src/util/sss_ldap.h
+++ b/src/util/sss_ldap.h
@@ -53,7 +53,7 @@ struct tevent_req *sss_ldap_init_send(TALLOC_CTX *mem_ctx,
struct tevent_context *ev,
const char *uri,
struct sockaddr_storage *addr,
- int addr_len);
+ int addr_len, int timeout);
int sss_ldap_init_recv(struct tevent_req *req, LDAP **ldap, int *sd);
#endif /* __SSS_LDAP_H__ */