added network timeout option for LDAP (thanks Sebastian Kotthoff)

This commit is contained in:
Ján Máté 2014-06-12 12:34:05 +02:00
parent c32a288385
commit 6b8193ad9a

View File

@ -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);