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!
[quoted text, click to view] "Branimir Giurov" <branimir@nospam.com> wrote in message news:<e8HZufYEEHA.3784@TK2MSFTNGP10.phx.gbl>...
> Hi,
>
> Check it out on the MSDN - it worked for me:
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbconintroductiontoadsiobjectsinvisualstudio.asp
>
> Cheers,
> Branimir
>
> --
> Branimir Giurov
> MCSD.NET, MCDBA, MCT
> eAgility LLC
> "DJ Dev" <ricky.arora@icn.siemens.com> wrote in message
> news:1169423e.0403232204.7a75428c@posting.google.com...
> > 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.