-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Ldap] Deprecate '{username}' parameter use in favour of '{user_identifier}' in LDAP configuration #46683
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
Hey! I think @Jayfrown has recently worked with this code. Maybe they can help review this? Cheers! Carsonbot |
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.
lgtm
It looks like this would benefit from triggering a deprecation when |
I agree with @nicolas-grekas. There is no "forward compatibility" here, as we don't replace
It would be a good idea to change this parameter name though. That would mean replacing both (like you introduce this PR) and trigger a deprecation when Status: needs work |
f8cc63f
to
f5efe9a
Compare
I made some changes based on your returns. This will allow a smoother change when droping deprecation notice IMO. |
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.
I like your proposal of doing the cleaning up in the LdapBadge
. I've left one comment in a place that is not directly dependent on LdapBadge
, but other than that this is ready to go imho!
4efdadb
to
1f11b3e
Compare
1f11b3e
to
76ed733
Compare
…ifier}' in LDAP configuration
76ed733
to
6dd1221
Compare
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.
(I just pushed the last changes)
Thank you @ktherage. |
This PR aims to fix a missing forward compatibility as done in src/Symfony/Component/Ldap/Security/LdapUserProvider.php at line 80 when authenticating with LDAP and using the following configuration :
instead of :
maybe related to : #40403