Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

International characters fail when renaming an object #894

Closed
tomnil opened this issue May 30, 2023 · 3 comments
Closed

International characters fail when renaming an object #894

tomnil opened this issue May 30, 2023 · 3 comments

Comments

@tomnil
Copy link

tomnil commented May 30, 2023

Passing a dn with international characters will successfylly rename the user, but the resulting dn will include encoded characters. As a result the user seems to be unaccessable from the "Active Directory Users and Computers".

v2 behaviour:

Version 2.3.3 correctly renamed the object to CN=Åke,DC=a,DC=b,DC=se.

Code

let client = ldapjs.createClient({ url: URL });
let oldDn = "CN=Test,DC=a,DC=b,DC=se"
let newDn = "CN=Åke,DC=a,DC=b,DC=se"
client.modifyDN(oldDn, newDn, (error: Error | null) => { ... }
@jsumners
Copy link
Member

Is this a duplicate of #883?

@tomnil
Copy link
Author

tomnil commented May 30, 2023

They're very similar - in the #883 it's about creating objects. This example renames, but the result seems to be the same.

It might have to do with the receiving ldap server if you cannot reproduce. Windows Server 2016 with "forest/domain functional level: 2016"

A workaround is to revert to 2.3.3 where it works as expected.

@jsumners
Copy link
Member

Please research why your LDAP server is not adhering to the spec and processing encoded DN strings correctly.

@jsumners jsumners closed this as not planned Won't fix, can't repro, duplicate, stale May 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants