diff options
author | Chris Buechler <cmb@pfsense.org> | 2016-05-24 18:31:24 -0500 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2016-05-24 18:32:35 -0500 |
commit | dd4053d5df445344e914ed2b9f7571e338bdf0c3 (patch) | |
tree | d1646b4a7a1e24b519c326198a871ffb4be3651f /src/etc/inc/auth.inc | |
parent | fa01d062bf8acd08c834cb23ebe1556480b61c36 (diff) | |
download | pfsense-dd4053d5df445344e914ed2b9f7571e338bdf0c3.zip pfsense-dd4053d5df445344e914ed2b9f7571e338bdf0c3.tar.gz |
Lower default LDAP timeout to 5 seconds. Idea from Sandeep1991 in PR 2971. Ticket #6367
Diffstat (limited to 'src/etc/inc/auth.inc')
-rw-r--r-- | src/etc/inc/auth.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/etc/inc/auth.inc b/src/etc/inc/auth.inc index a3cf01c..286f606 100644 --- a/src/etc/inc/auth.inc +++ b/src/etc/inc/auth.inc @@ -881,7 +881,7 @@ function ldap_test_bind($authcfg) { $ldapbindun = $authcfg['ldap_binddn']; $ldapbindpw = $authcfg['ldap_bindpw']; $ldapver = $authcfg['ldap_protver']; - $ldaptimeout = is_numeric($authcfg['ldap_timeout']) ? $authcfg['ldap_timeout'] : 25; + $ldaptimeout = is_numeric($authcfg['ldap_timeout']) ? $authcfg['ldap_timeout'] : 5; if (empty($ldapbndun) || empty($ldapbindpw)) { $ldapanon = true; } else { @@ -965,7 +965,7 @@ function ldap_get_user_ous($show_complete_ou=true, $authcfg) { $ldapname = $authcfg['name']; $ldapfallback = false; $ldapscope = $authcfg['ldap_scope']; - $ldaptimeout = is_numeric($authcfg['ldap_timeout']) ? $authcfg['ldap_timeout'] : 25; + $ldaptimeout = is_numeric($authcfg['ldap_timeout']) ? $authcfg['ldap_timeout'] : 5; } else { return false; } @@ -1098,7 +1098,7 @@ function ldap_get_groups($username, $authcfg) { $ldapname = $authcfg['name']; $ldapfallback = false; $ldapscope = $authcfg['ldap_scope']; - $ldaptimeout = is_numeric($authcfg['ldap_timeout']) ? $authcfg['ldap_timeout'] : 25; + $ldaptimeout = is_numeric($authcfg['ldap_timeout']) ? $authcfg['ldap_timeout'] : 5; } else { return false; } @@ -1241,7 +1241,7 @@ function ldap_backed($username, $passwd, $authcfg) { $ldapver = $authcfg['ldap_protver']; $ldapname = $authcfg['name']; $ldapscope = $authcfg['ldap_scope']; - $ldaptimeout = is_numeric($authcfg['ldap_timeout']) ? $authcfg['ldap_timeout'] : 25; + $ldaptimeout = is_numeric($authcfg['ldap_timeout']) ? $authcfg['ldap_timeout'] : 5; } else { return false; } |