summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Howard <lukeh@padl.com>2017-09-28 08:53:15 +1000
committerGitHub <noreply@github.com>2017-09-28 08:53:15 +1000
commit6082484b2b85626f31e998557323503cd03de32f (patch)
treec2b591e6785988140369615bc7350b102dff7282
parent4a53247b1f189ea595a096e996ce26f3cb77ef48 (diff)
parent79bff5b4bb9f543254a84dcf3c47e11112e3dbc9 (diff)
Merge pull request #2 from dhawes/mastermaster
Use the bind_timelimit when binding.
-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)