https://bugs.openldap.org/show_bug.cgi?id=9817
--- Comment #3 from Ondřej Kuzník ondra@mistotebe.net --- On Thu, Mar 24, 2022 at 09:30:08PM +0000, openldap-its@openldap.org wrote:
I'm using rwn to select the database useg for bind operations based on the result of a rewriteMap requets.
[...]
Everything goes fine until I use DN with special characters, like ',' or '['. For example : 'cn=Pubellier, Thierry (TEST),ou=users,dc=paris,dc=local'
In this case, the rwm-rewriteRule contructs a LDAP filter with incorrect syntax, as special caracters are not being escaped.
Hi Thierry, it's been a while since I've done anything of note with rwm and the configuration snippet you provided is missing substantial elements, e.g. a workable definition of the checkIfPasswordExpiredDN map. Could you provide a minimal script (preferably one that can be included in the OpenLDAP regression suite) that reproduces this?
Thanks,