mirror of
https://github.com/humhub/humhub.git
synced 2025-01-29 20:38:26 +01:00
Added Network Timeout
This commit is contained in:
parent
fa0d1fcd4b
commit
98ea0906f1
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user