-
Notifications
You must be signed in to change notification settings - Fork 7
fix: The DN was created in Chinese, but the AD failed to be created #2
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are you trying to accomplish? Simply deleting this code is not acceptable.
I want to create a organizaitonUnit in AD. But i found if DN have 3-byte UTF-8 character will be transcoded.It will block the creation of AD then show the error "Invalid Dn Syntax". If it return original value, it doesn't block the creation of LDAP and AD. |
Please provide a minimal reproducible example (MRE). Doing so will help us diagnose your issue. It should be the bare minimum code needed to trigger the issue, and easily runnable without any changes or extra code. Please review the integration tests, e.g. issue-940.test.js, for examples of good MREs. You may use a GitHub repository to host the code if it is too much to fit in a code block (or two). |
ok. I review some test in test-integration. I found the issue-883.test.js have same issue with me. I passed wireshark to anaylsis TCP data. I found the DN had been transcoded to HEX. It does work in LDAP. But it doesn't work in Active Directory. Beacuse Active Directory not allow DN transcoded to HEX. So, I think it need to skip transcode proceedure. Thanks for the reply. |
Can you provide a Wireshark trace file for a failure case? Please use a test account that will not expose sensitive information. |
ok. I save the Wireshark file for a failure_case. You can go to my Repository to download the Wireshark. failure_wireshark_data You can open the file with Wireshark then input "ip.addr == 192.168.0.43" to filter data. Then you will see the info have addRequest and addResponse. |
I suspect this is the same issue as ldapjs/filter#9 (comment). The hex dump for the invalid LDAP message is:
|
When i try to create AD DN with Chinese, it will show error "Invalid Dn Syntax".
It can't be transcoded. Otherwise it will cause error