node-activedirectory icon indicating copy to clipboard operation
node-activedirectory copied to clipboard

canonicalName not being returned in search results of user objects

Open tfrancois opened this issue 6 years ago • 1 comments

Does anyone know how to return the canonicalName attribute for AD users? I realized that the canonicalName attribute is a computed value and is not really saved in Active Directory, but since I am able to retrieve the dn property, maybe it can be constructed from that property? Anyone have an idea how to tackle this? Please help. Thanks.

tfrancois avatar Feb 01 '19 10:02 tfrancois

In the meantime, I wrote my own Javascript function that returns a properly formatted canonicalName using a valid passed in distinguishedName attribute for a user. See my own answer to the question I posted on stackoverflow.com. Hope it helps someone while we hopefully get a fix to this issue in the library.

https://stackoverflow.com/questions/54411083

tfrancois avatar Feb 05 '19 17:02 tfrancois