inejge / ldap3

A pure-Rust LDAP library using the Tokio stack
Apache License 2.0
220 stars 38 forks source link

Implemented a DN attribute value escaping function. #13

Closed golddranks closed 7 years ago

golddranks commented 7 years ago

This is simply the same function than with the search filters, but the characters that need escape changed. It escapes a bit more that is strictly needed (# and space must be escaped only in the beginning and end of the value), but the RFC allows that.

golddranks commented 7 years ago

Ref #12

inejge commented 7 years ago

Thanks for the PR! I've merged it with a few touch-ups (omitting unneeded inner escapes, documentation, re-export at top level) and a couple of tests.