Added Network Timeout

This commit is contained in:
Lucas Bartholemy 2019-03-22 14:56:06 +01:00
parent fa0d1fcd4b
commit 98ea0906f1

View File

@ -148,6 +148,11 @@ class LdapAuth extends BaseFormAuth implements AutoSyncUsers, SyncAttributes, Ap
*/
public $syncUserTableAttributes = ['username', 'email'];
/**
* @var int The value for network timeout when connect to the LDAP server.
*/
public $networkTimeout = 30;
/**
* @inheritdoc
*/
@ -416,6 +421,7 @@ class LdapAuth extends BaseFormAuth implements AutoSyncUsers, SyncAttributes, Ap
'bindRequiresDn' => true,
'baseDn' => $this->baseDn,
'accountFilterFormat' => $this->loginFilter,
'networkTimeout' => $this->networkTimeout,
];
$this->_ldap = new Ldap($options);