forked from extern/egroupware
set network timeout for ldap connections to not block for minutes
This commit is contained in:
parent
28057d583a
commit
262d8d6440
@ -192,6 +192,8 @@ class ldap
|
|||||||
{
|
{
|
||||||
return False;
|
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))
|
if(ldap_set_option($this->ds, LDAP_OPT_PROTOCOL_VERSION, 3))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user