Issue Description
search having substring filter on attribute with dn syntax may fail to return matching entries
Package Version and Platform:
Platform: Fedora
Package and version: main branch
Steps to Reproduce
Steps to reproduce the behavior:
Create an instance with the sample data
Run: ldapsearch ... -b dc=example,dc=com "(entrydn=uid=DEMO_USER,ou=people,dc=example,dc=com)" dn
(... are the connection and authentication info of your instance)
See error: 2. returns 1 entry while 3. returns no entries
Expected results
and 3. should both returns the uid=demo_user,ou=people,dc=example,dc=com entry
Additional context
Turning on trace and filter log level helps to understand the problem: we see that the regex that check the substring value is not properly normalized. Likely because USER,ou=people,dc=example,dc=com is not a proper dn and the normalization fails
Issue Description search having substring filter on attribute with dn syntax may fail to return matching entries
Package Version and Platform:
Steps to Reproduce Steps to reproduce the behavior:
Expected results
Additional context Turning on trace and filter log level helps to understand the problem: we see that the regex that check the substring value is not properly normalized. Likely because USER,ou=people,dc=example,dc=com is not a proper dn and the normalization fails