Problems:
SubjectDN extracted from the certificate is not escaped when used by certmap.conf
Other extracted value are wrongly escaped and quoted when added in filter
Solution: Ensure that proper escape function is used in these two cases.
Values in filter should not be quoted but * should be escaped.
Note: I considered to reuse the ldap_bv2escaped_filter_value function but it needless realloc the returned data
so I ended up to rewrite something the escape function (which is quite straightforward anyway).
Problems: SubjectDN extracted from the certificate is not escaped when used by certmap.conf Other extracted value are wrongly escaped and quoted when added in filter
Solution: Ensure that proper escape function is used in these two cases. Values in filter should not be quoted but * should be escaped.
Note: I considered to reuse the ldap_bv2escaped_filter_value function but it needless realloc the returned data so I ended up to rewrite something the escape function (which is quite straightforward anyway).
Issue: #6199
Reviewed by: @droideck