-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Ldap] Make LdapUserProvider::refreshUser() actually reload the user entry #33246
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
301500a
to
5472601
Compare
I'm sorry but I miss the point of this PR: why would an LDAP user provider have to know anything about a Doctrine ORM? |
7ee1af0
to
75a3d59
Compare
75a3d59
to
7de44eb
Compare
I don't think that's a right fix either :/ |
LGTM now that the doctrine-related code has been reverted, deauthentication should be triggered if the user has changed on the ldap server.
|
@Mathieudewet Can you add a test and a note in the Ldap component's CHANGELOG file? |
bc48b5c
to
d786f99
Compare
d786f99
to
c847af7
Compare
Note that this will break for session-based mechanisms. Stateless authentication modes (Basic / Digest) will be able to work, as the user never has to be refreshed, but any other authentication mode might break, if you are using the authenticated user credentials in order to fetch the user information (bind w/ authenticated user vs bind w/ search user). The only way this can work is with a search user. 👎 on this. |
Thank you for reviewing @csarrazi. |
Uh oh!
There was an error while loading. Please reload this page.