diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2011-08-15 17:46:04 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-08-15 15:22:04 -0400 |
commit | bba376bff88042bb04ac89e9b3167ae89c57a953 (patch) | |
tree | a41cd139d10e4a7d49493e68e0d95f4df2185b0e /src/util/sss_ldap.h | |
parent | 194a6c52d21ff7881d6d685aa21c0a7076e8f3c7 (diff) | |
download | sssd-bba376bff88042bb04ac89e9b3167ae89c57a953.tar.gz sssd-bba376bff88042bb04ac89e9b3167ae89c57a953.tar.xz sssd-bba376bff88042bb04ac89e9b3167ae89c57a953.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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/sss_ldap.h b/src/util/sss_ldap.h index df96b9dcb..437c93771 100644 --- a/src/util/sss_ldap.h +++ b/src/util/sss_ldap.h @@ -52,7 +52,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__ */ |