Last post Jul 07, 2009 06:47 PM by FileFoundException
Jul 07, 2009 02:08 AM|ftileh|LINK
I'm building a webservice that uses LDAP to retrieve information from active directory.
When i use the Attribute "Manager" i get the full name of the manager of the user in AD. What i need is the username of the manager and not just the FullName.
Is there any possibility to do so?
Jul 07, 2009 10:29 AM|papabear|LINK
I am assuming that you are familiar with LDAP queries and so I will skip all that (except, of course, to remind you to wrap your Searcher, etc in using statements for proper disposal <g>)
Basically what you are going to have to do, I am afraid, is retrieve that person from AD. The nice thing is that you are given their CN, so it is a quick retrieval. Just have the PropertiesToLoad for that Searcher be their userPrincipalName and VOILA!!!
Jul 07, 2009 06:47 PM|FileFoundException|LINK
This also might help http://forums.asp.net/p/1440155/3280043.aspx#3265176