Access the Active Directory using .NET

G

Guest

Can someone provide some assistance (code or tutorial) that will show me how
to access the AD using .NET? I have some old ASP code that I wrote awhile
back but I would like to do this using ADO.NET. I have read about the
System.DirectoryServices namespace but it doesn't appear in my intellisense.
I am using a Windows 2000 Server platform but developing the app on my XP
machine.

I am also using the VB.NET language.
 
M

Marc Scheuner [MVP ADSI]

I have read about the System.DirectoryServices namespace but it doesn't appear in my intellisense.

You need to add a reference to the "System.DirectoryServices" dll into
your project !

Marc
================================================================
Marc Scheuner May The Source Be With You!
Berne, Switzerland m.scheuner -at- inova.ch
 
M

Marc Scheuner [MVP ADSI]

Can someone provide some assistance (code or tutorial) that will show me how
to access the AD using .NET? I have some old ASP code that I wrote awhile
back but I would like to do this using ADO.NET.

Won't work - there's no ADO.NET provider for AD - only "old-style" ADO
(OleDB).

I'd strongly suggest you have a serious look at the DirectorySearcher
in S.DS - it does most of what you might want to do, with ADO - and
it's a lot slicker than ADO, IMHO.

Marc

================================================================
Marc Scheuner May The Source Be With You!
Berne, Switzerland m.scheuner -at- inova.ch
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top