Skip to content
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

[Security/Core] fix escape for username in LdapBindAuthenticationProvider.php #36498

Merged
merged 1 commit into from Apr 21, 2020

Conversation

stoccc
Copy link
Contributor

@stoccc stoccc commented Apr 19, 2020

Q A
Branch? 3.4
Bug fix? yes
New feature? no
Deprecations? no
License MIT

I think that when we call ldap_search() as definitely it will do the $this->ldap->query() call, the proper filter applied should be LdapInterface::ESCAPE_FILTER as documented in
https://www.php.net/manual/en/function.ldap-escape.php while LdapInterface::ESCAPE_DN should be used for dn only

This simple change should fix, I'm sorry if I'm wrong.

@stoccc stoccc changed the title Update LdapBindAuthenticationProvider.php fix escape for username in LdapBindAuthenticationProvider.php Apr 19, 2020
@nicolas-grekas nicolas-grekas added this to the 3.4 milestone Apr 20, 2020
@nicolas-grekas nicolas-grekas changed the title fix escape for username in LdapBindAuthenticationProvider.php [Security/Core] fix escape for username in LdapBindAuthenticationProvider.php Apr 20, 2020
@nicolas-grekas
Copy link
Member

Thank you @stoccc.

@nicolas-grekas nicolas-grekas merged commit 08ded7f into symfony:3.4 Apr 21, 2020
This was referenced Apr 28, 2020
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.

None yet

4 participants