noirello / bonsai

Simple Python 3 module for LDAP, using libldap2 and winldap C libraries.
MIT License
117 stars 33 forks source link

Escape filter and dn #18

Closed xunto closed 6 years ago

xunto commented 6 years ago

Is there some method in bonsai to escape characters when building filter or dn for search?

noirello commented 6 years ago

Just manual backslashing, no built-in method like html.escape. What do you have in mind exactly?

noirello commented 6 years ago

v1.0.0 is out now and has an escape_attribute_value´ function for escaping DN and anescape_filter_exp` function for escaping filter.