Access the Active Directory using .NET

  • Thread starter Thread starter Guest
  • Start date Start date
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.
 
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
 
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
 
Back
Top