Add ldap login fallback to native login

- Allow falling back to native login if ldap fails
- Read configuration to enable / disable the fallback
This commit is contained in:
Clemente Raposo 2022-06-30 11:52:54 +01:00
parent db6afc52fc
commit 8c669180c5
2 changed files with 120 additions and 0 deletions

View file

@ -147,6 +147,14 @@ services:
- !abstract options
- '@?property_accessor'
security.listener.json_login_ldap.main:
class: App\Security\Ldap\AppCheckLdapCredentialsListener
tags:
- name: 'kernel.event_subscriber'
dispatcher: security.event_dispatcher.main
arguments:
- '@security.ldap_locator'
App\Security\LegacySessionLogoutHandler:
tags:
- name: 'kernel.event_listener'