From 6d4a0f84b5871f07865e6a48c4711ab5dc7be499 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 22 Jul 2015 13:35:19 +0000 Subject: [PATCH] set network timeout for ldap connections to not block for minutes --- phpgwapi/inc/class.ldap.inc.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/phpgwapi/inc/class.ldap.inc.php b/phpgwapi/inc/class.ldap.inc.php index b08d096abf..11cf3b11c3 100644 --- a/phpgwapi/inc/class.ldap.inc.php +++ b/phpgwapi/inc/class.ldap.inc.php @@ -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)) {