set network timeout for ldap connections to not block for minutes

This commit is contained in:
Ralf Becker 2015-07-22 13:35:01 +00:00
parent 28057d583a
commit 262d8d6440

View File

@ -192,6 +192,8 @@ class ldap
{
return False;
}
// set network timeout to not block for minutes
ldap_set_option($this->ds, LDAP_OPT_NETWORK_TIMEOUT, 5);
if(ldap_set_option($this->ds, LDAP_OPT_PROTOCOL_VERSION, 3))
{