Skip to content

[Ldap] Fix LdapUser::isEqualTo #60626

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

Merged
merged 1 commit into from
Jun 2, 2025

Conversation

MatTheCat
Copy link
Contributor

@MatTheCat MatTheCat commented Jun 2, 2025

Q A
Branch? 7.3
Bug fix? yes
New feature? no
Deprecations? no
Issues Fix #60454
License MIT

Since #59682 LdapUsers’ password no longer is serialized in the session, which means that isEqualTo will crash when trying to access it.

This PR makes getPassword returns null by default to fix this, and update isEqualTo to apply #59539’s logic.

@MatTheCat MatTheCat force-pushed the ldap-user-password branch from 6a87e91 to ad74742 Compare June 2, 2025 08:44
@nicolas-grekas
Copy link
Member

Thank you @MatTheCat.

@nicolas-grekas nicolas-grekas merged commit dd64f65 into symfony:7.3 Jun 2, 2025
11 checks passed
@MatTheCat MatTheCat deleted the ldap-user-password branch June 2, 2025 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants