Active Directory & LDAP

 Rate It (0)

There are many questions that come up regularly in the forums.  These recipes address some of those questions.

Recipes

Accessing Active Directory

How to query Active Directory without hard-coding the domain name - in C# and VB.Net


Testing your directory access code

Getting code which accesses Active Directory to work inside IIS can be tricky.  It's often a good idea to write and test your classes outside of IIS, where it's much simpler.  These four recipes show you how to set up console projects in Visual Basic.NET and C# using Microsoft Visual Studio® 2005 SP1 and 2008.

How to create a VB.NET project to access Active Directory using VS 2005 SP1

How to create a VB.NET project to access Active Directory using VS 2008

How to create a C# console project to access Active Directory using VS 2005 SP1

How to create a C# console project to access Active Directory using VS 2008

 

Revision number 5, Sunday, September 07, 2008 12:45:41 PM by ssg31415926

Comments

The links to "How to create a C# project to access Active Directory" and "How to create a VB.Net project to access Active Directory" are broken!

nice article...

Thanks it is helpful..

In This Section

How to query Active Directory without hard-coding the domain name

It can be useful to be able to write code that can query the current domain without you having to hard-code the domain name. This article will show you how. Scenario Let us imagine that you have two Active Directory forests, one production and one development

AD console project in C# in VS 2008

Getting Active Directory queries to work in ASP.NET and IIS can be extremely tricky, especially if you're just getting started with ASP.NET, IIS and the DirectoryServices namespace. It's often helpful to get your basic queries working in a Console

Related Articles

AD console project in C# in VS 2008

Getting Active Directory queries to work in ASP.NET and IIS can be extremely tricky, especially if you're just getting started with ASP.NET, IIS and the DirectoryServices namespace. It's often helpful to get your basic queries working in a Console

Shortcuts

Table of Contents

Top Wiki Contributors

(last 30 days)

  1. mbanavige (13)
  2. srinivaskotra (3)
  3. Babunareshnarra (2)
  4. rdmartin33 (2)
  5. XIII (2)
  6. yrb.yogi (1)
  7. Dungimon (1)
  8. ali62b (1)
Microsoft Communities