mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 09:34:39 +00:00
system: fix TOTP regression when used with LDAP, although https://github.com/opnsense/core/commit/ae97263e was the right fix, it assumes other children also implement _authenticate()
This commit is contained in:
parent
419491f4c5
commit
f271c6a3fc
@ -473,12 +473,23 @@ class LDAP extends Base implements IAuthConnector
|
||||
}
|
||||
|
||||
/**
|
||||
* authenticate user against ldap server
|
||||
* authenticate user against ldap server without Base's timer
|
||||
* @param string $username username to authenticate
|
||||
* @param string $password user password
|
||||
* @return bool authentication status
|
||||
*/
|
||||
public function authenticate($username, $password)
|
||||
{
|
||||
return $this->_authenticate($username, $password);
|
||||
}
|
||||
|
||||
/**
|
||||
* authenticate user against ldap server, implementation as described in Base class
|
||||
* @param string $username username to authenticate
|
||||
* @param string $password user password
|
||||
* @return bool authentication status
|
||||
*/
|
||||
protected function _authenticate($username, $password)
|
||||
{
|
||||
$ldap_is_connected = false;
|
||||
$user_dn = null;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user