Groups | Blog | Home
all groups > dotnet general > march 2004 >

dotnet general : Active Directory Query with unique identifier


ricky.arora NO[at]SPAM icn.siemens.com
3/23/2004 10:04:29 PM
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.
ricky.arora NO[at]SPAM icn.siemens.com
3/24/2004 9:01:36 AM
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
3/24/2004 12:14:02 PM
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
[quoted text, click to view]

AddThis Social Bookmark Button