2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 14:25:15 +00:00

fix LDAP_OPT_NETWORK_TIMEOUT setting

This commit is contained in:
Todd C. Miller
2007-12-18 14:54:45 +00:00
parent 3be9fcbedb
commit dbe2b9e4f3

2
ldap.c
View File

@@ -185,7 +185,7 @@ struct ldap_config_table ldap_conf_table[] = {
&ldap_conf.tls_keyfile },
#endif
#ifdef LDAP_OPT_NETWORK_TIMEOUT
{ "bind_timelimit", CONF_INT, TRUE, 0 /* needs timeval, set manually */,
{ "bind_timelimit", CONF_INT, TRUE, -1 /* needs timeval, set manually */,
&ldap_conf.bind_timelimit },
#elif defined(LDAP_X_OPT_CONNECT_TIMEOUT)
{ "bind_timelimit", CONF_INT, TRUE, LDAP_X_OPT_CONNECT_TIMEOUT,