Active Directory Query with unique identifier

  • Thread starter Thread starter DJ Dev
  • Start date Start date
D

DJ Dev

I am querying and getting usernames from the AD using VB.NET. This is
working well for me. Now one user is selected out of all the users
from AD. After this selection is made, I want to get other information
(like email, phone etc) from AD for that user.
My question is that how can I then query AD for that user. Should I
use the objectguid. Is that the unique identifier? A code sample or
the way to do it will be highly appreciated.
Thanks!
 
Thanks Branimir for your help.
Actually, what I am looking for is something different. I know how to
search the AD for specific information. In this case, I want to get
the objectguid and then query based on that objectguid. I believe that
the objectguid is stored in the form of octet strings.
My question is that how can I query the AD using the objectguid. I
think I have to do some kind of conversions between the objectguid
formats etc. I may be wrong though.
Someone pls throw some light.

Thanks!
 
Back
Top