Open ilmari opened 5 years ago
I'll have a look at this next week. I guess I've just depended on Net::LDAP to handle it.
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.
RFC 4515 requires
*
(
)
\
andNUL
to be escaped with a backslash followed by the hexadecimal representation of the byte value.