Is there a way to make the Espo authentication mechanism the fallback method for the times when LDAP fails? I'm also interested in this so I can separate some of my users from the LDAP configuration. The majority of my users are part of the main LDAP configuration because they are internal employees, but we also allow subcontractors to access our CRM system and adding them to the LDAP system is not a possibility. It would be really helpful if the authentication mechanism would say "I didn't find anything in LDAP... let me try Espo".
This is the relevant code. Could the other implementation be used if the first one fails?
This is the relevant code. Could the other implementation be used if the first one fails?
PHP Code:
229 $authenticationImpl = $this->getAuthenticationImpl($authenticationMethod);
230
231 $params = [
232 'isPortal' => $this->isPortal(),
233 ];
234
235 $loginResultData = [];
236
237 $user = $authenticationImpl->login($username, $password, $authToken, $params, $this->request, $loginResultData);
Comment