mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-08-31 18:46:02 +00:00
added network timeout option for LDAP (thanks Sebastian Kotthoff)
This commit is contained in:
parent
c32a288385
commit
6b8193ad9a
@ -48,6 +48,8 @@ class ldapDrivers
|
||||
ldap_set_option($this->connect, LDAP_OPT_PROTOCOL_VERSION, $config['protocolVersion']);
|
||||
if (isset($config['optReferrals']))
|
||||
ldap_set_option($this->connect, LDAP_OPT_REFERRALS, $config['optReferrals']);
|
||||
if (isset($config['networkTimeout']))
|
||||
ldap_set_option($this->connect, LDAP_OPT_NETWORK_TIMEOUT, $config['networkTimeout']);
|
||||
|
||||
if ($port)
|
||||
$this->connect=ldap_connect($host, $port);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user