summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pam_ldap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pam_ldap.c b/pam_ldap.c
index 03ae229..9781d01 100644
--- a/pam_ldap.c
+++ b/pam_ldap.c
@@ -2179,7 +2179,7 @@ retry:
}
#endif /* HAVE_LDAP_SASL_BIND && LDAP_SASL_SIMPLE */
- timeout.tv_sec = 10;
+ timeout.tv_sec = session->conf->bind_timelimit; /* default 10 */
timeout.tv_usec = 0;
rc = ldap_result (session->ld, msgid, FALSE, &timeout, &result);
if (rc == -1 || rc == 0)