node-activedirectory
node-activedirectory copied to clipboard
canonicalName not being returned in search results of user objects
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.
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.