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 those RDN characters that are optionally escaped in the RFC(s) #83

Open
nwoolls opened this issue Apr 8, 2019 · 0 comments
Open

Comments

@nwoolls
Copy link

nwoolls commented Apr 8, 2019

LDAP RFCs for LDAP (2253, 4514, 4515) make escaping and # optional if they are not the first character in the RDN value. The current implementation of LdapDN.EscapeRDN() seems to follow these RFCs by not escaping or # unless it is the first character in the RDN.

However, some server implementations (e.g. org.apache.directory.shared.ldap) fall down on parsing these values. We can work around this but it would be nice to have LdapDN.EscapeRDN() escape the characters - maybe optionally? - that are currently only escaped if they are the leading character.

Understood it would be better to address the issue with parsing the values but this may not always be possible unless the author of the client is also in control of the server code.

@nwoolls nwoolls changed the title Escape (optionally?) those characters that are optional in the RFC Escape those RDN characters that are optionally escaped in the RFC(s) Apr 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants