Closed ansibleguy76 closed 5 months ago
I would like to understand more about this patch:
i went into the code of ldap.js and noticed that they return encoded utf8 chars. which wasn't handled in your code. if you would patch your code, i can use npm again.
i will try to simulate a user later
Can you be kindly to point me to where in the ldapjs code that it return encoded utf8?
ok. I think I get what you mean. The return string from ldapjs will be backslash escaped hex if the result have utf encode runes. like this:
'cn=\\e7\\a0\\94\\e5\\8f\\91A\\e9\\83\\a8,ou=users,dc=example,dc=com'
Your method may not be enough to decode it. We need a better way.
fixed by merge #66
Hi, I tested your 3.2.1 version from npm Did this fix make it ? Because I still have the same issue. If I fall back to my verions, it work.
Seems not, I copied your code manually, and it works too.
just published 3.2.2 which has the fix
Add function :
and use it to unescape the result :