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

Escape special characters in LDAP filter #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ilmari
Copy link

@ilmari ilmari commented Nov 24, 2018

RFC 4515 requires * ( ) \ and NUL to be escaped with a backslash
followed by the hexadecimal representation of the byte value.

RFC 4515 requires * ( ) \ and NUL to be escaped with a backslash
followed by the hexadecimal representation of the byte value.

https://tools.ietf.org/html/rfc4515#section-3
@duffee
Copy link
Owner

duffee commented Dec 6, 2018

I'll have a look at this next week. I guess I've just depended on Net::LDAP to handle it.

@ilmari
Copy link
Author

ilmari commented Dec 7, 2018

Net::LDAP has no handling for this, sadly. Net::LDAP::Filter knows how to escape and unescape attribute values in a filter, but the only input form is the filter string, so we must do the escaping ourselves.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants