-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[Security] Ability to add roles in form_login_ldap by ldap group
#52181
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
Conversation
src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/UserProvider/LdapFactory.php
Outdated
Show resolved
Hide resolved
Yes it will be for 7.1, but you can already rebase on and target 7.0 if you like |
ea40f75 to
172a40a
Compare
2a66af5 to
840f533
Compare
840f533 to
211c52f
Compare
211c52f to
3c74d5f
Compare
3c74d5f to
db1771b
Compare
nicolas-grekas
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What would be the typical implementation for a role fetcher? Can we provide one that e.g. reads some conventional entries from the Entry?
src/Symfony/Bundle/SecurityBundle/Tests/Functional/JsonLoginLdapTest.php
Outdated
Show resolved
Hide resolved
|
Did I understand this correct, that there will be an easy way, to read the memberOf of a LDAP User if logging in and than set a role? |
form_login_ldap by ldap group
cdd873f to
80eb8a3
Compare
src/Symfony/Bundle/SecurityBundle/Tests/Functional/app/JsonLoginLdap/config.yml
Outdated
Show resolved
Hide resolved
welcoMattic
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2 minor comments, otherwise it's 👍 for me
15aab3b to
5e8b1c7
Compare
This update allows LDAP to fetch roles for a given user entry by using the new RoleFetcherInterface. The LdapUserProvider class has been adjusted to use this new functionality.
5e8b1c7 to
b183e4a
Compare
|
Thank you @Spomky. |
This PR adds a way for setting roles in
form_login_ldapbased on LDAP configuration.Please note that it is based on SF6.4, but may be changed to 7.1 if already in feature freeze period.=> Rebased for targeting SF 7.1