Bcfg2/bcfg2 — pull request #41 by trehn (2012-07-18 12:17:04+00:00)
Title: LDAP plugin: special characters in search filters need double escaping

Example:

A search returns "cn=a\+b" for some attribute containing a DN (such as "member").

When users try to create a search filter from that result, they should not need to mess around with escaping stuff and end up passing us this search filter: "(cn=a\+b)".

That "\+" is valid LDIF style escaping, but for our search to work, we need to escape the backslash by adding another, thus resulting in this filter being passed to python-ldap: "(cn=a\\+b)"