From 6b8193ad9aad9fa3bad9229c276490cbb658abf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ja=CC=81n=20Ma=CC=81te=CC=81?= Date: Thu, 12 Jun 2014 12:34:05 +0200 Subject: [PATCH] added network timeout option for LDAP (thanks Sebastian Kotthoff) --- inc/drivers_ldap.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inc/drivers_ldap.php b/inc/drivers_ldap.php index 8e5cb452..529bad65 100644 --- a/inc/drivers_ldap.php +++ b/inc/drivers_ldap.php @@ -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);