Skip to content

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.

4 participants