This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

LDAP Manager Field pulls in full DN

FormerMember
FormerMember

I have a custom client attribute called "manager" that pulls the "manager" field from our active directory during LDAP import. Unfortunately, it pulls in the full DN of the manager, not the friendly name. So, for instance, for my account it pulls in my manager as:

CN=ManagerFirst ManagerLast,OU=Users,OU=theouname,DC=domain,DC=company,DC=com

Any idea how I can get it to just pull ManagerFirst and ManagerLast?

  • The manager field is stored as a string representing a DN.   The manager's first and last are not directly available on the employee AD record.

    In other contexts, I've created follow-up queries to retrieve records by DN; so I can subsequently get at the first (givenName) and last (sn) names of the manager.   Of course, this can really kill you if this is inside a loop and you've not optimized it.