This repository was archived by the owner on May 14, 2024. It is now read-only.

Description
This issue is the sequel of ldapjs/node-ldapjs#860. After upgrading to v3, my search request fails when combining wildcard (*) and non-ascii characters. Using Apache directory studio or ldapsearch my search request succeeds but not when using ldapjs.
I have read the logs on my OpenLDAP server and we clearly see a problem on how the filter is processed:
ldapjs for (&(description=*réseau*))
In the logs: filter="(&(description=*r\5Cc3\5Ca9seau*))"
❌ Not working
Apache Directory Studio for (description=*réseau*)
In the logs: filter="(description=*r\C3\A9seau*)"
🆗 Working
ldapjs for (&(description=réseau))
In the logs: filter="(&(description=r\C3\A9seau))"
🆗 Working thanks to ldapjs/node-ldapjs#860 and no wildcard
ldapjs for new EqualityFilter({ attribute: "description", value: "*réseau*"})
In the logs: filter="(description=\2Ar\C3\A9seau\2A)"
❌ Not working
ldapsearch for (description=*réseau*)
In the logs: filter="(description=*r\C3\A9seau*)"
🆗 Working
Thank you in advance for your help!