From 126a5671fe2db16623bdfcd377039ce1fc3aa168 Mon Sep 17 00:00:00 2001 From: snipe Date: Mon, 18 Sep 2017 19:11:38 -0700 Subject: [PATCH] Set timeout for LDAP server --- app/Models/Ldap.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Models/Ldap.php b/app/Models/Ldap.php index 812372978a..0a68e15407 100644 --- a/app/Models/Ldap.php +++ b/app/Models/Ldap.php @@ -48,6 +48,7 @@ class Ldap extends Model // Needed for AD ldap_set_option($connection, LDAP_OPT_REFERRALS, 0); ldap_set_option($connection, LDAP_OPT_PROTOCOL_VERSION, $ldap_version); + ldap_set_option($connection, LDAP_OPT_NETWORK_TIMEOUT, 20); if ($ldap_use_tls=='1') { ldap_start_tls($connection);