3
0
mirror of https://github.com/snipe/snipe-it.git synced 2025-11-01 16:18:45 +00:00

Set timeout for LDAP server

This commit is contained in:
snipe 2017-09-18 19:11:38 -07:00
parent aff104fa5d
commit 126a5671fe

View File

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