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:
Ad Schellevis 2024-12-03 21:45:29 +01:00
parent 419491f4c5
commit f271c6a3fc

View File

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