pear / Net_LDAP2

Object oriented interface for searching and manipulating LDAP-entries
http://pear.php.net/package/Net_LDAP2
GNU Lesser General Public License v3.0
10 stars 6 forks source link

Net_LDAP2_Util :: canonical_dn : Fix escaping slashing slashes #2

Closed brenard closed 3 years ago

brenard commented 5 years ago

Hello,

I detect an error in _canonicaldn method of the _Net_LDAP2Util class : slashes are escape using a simple backslash but the resulting DN is refuse by OpenLDAP on moving operation.

It's could be easily reproduce by moving an object with a slash in new RDN.

To solve that, I simply change the substitution string to '\2f' (ASCII Hex format).

brenard commented 3 years ago

Could this fix be integrated upstream ?