set network timeout for ldap connections to not block for minutes

This commit is contained in:
Ralf Becker 2015-07-22 13:35:19 +00:00
parent 314759546f
commit 6d4a0f84b5

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))
{