-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Login does not work with new authenticator System #20
Comments
I've created a simple authenticator class for Pimcore 10.5 and above @ https://gist.github.com/MLukman/cd8671e505e202f8753fd4ae7c296f71 How to use:
|
Hi thank you, this one works well.... unfortunately it works no only with LDAP authentication and not anymore with an existing user in pimcore without LDAP credentials... Is there a way to have both login methods? |
Yes, if your LDAP logins have a specific format then you can put the regex pattern for the LDAP logins inside the LDAP_LOGINS_REGEX constant. Or you can specify the list of the Pimcore user logins/groups in the exclude_rules options of this bundle configuration (refer this repository's README) |
With the new Symfony authenticator system it is no longer possible to login via LDAP (https://pimcore.com/docs/pimcore/current/Development_Documentation/Development_Tools_and_Details/Security_Authentication/Authenticator_Based_Security.html)
The problem is that
I tried to work around that by changing the user provider to a chained user provider with a normal pimcore user provider and a new ldap user provider, unfortunately, this leads to an error in the AdminAbstractAuthenticator as the LDAP User Provider returns LDAPUser which has no getUser function.
My current solution is to have a cronjob running that adds new and deletes old admin users each night, so the User Badge gets a user and then the pimcore.admin.login.failed Event is triggered which authenticates the user with the ldap
The text was updated successfully, but these errors were encountered: