Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Active Directory Server with .Net

We are developing our application using MS Visual Studio 2008 VB .Net.

We have to use Active Directory Server for authenticating the user logging into the application.

Does any one has code samples intergrating .Net and ADS?

like image 755
Shoba Anandhan Avatar asked Jan 24 '23 01:01

Shoba Anandhan


2 Answers

There's the CodeProject articles on the topic:

  • Working with Active Directory from VB.NET
  • How to do almost anything with Active Directory

and on MSDN in the System.DirectoryServices documentation, there's

  • Quicklist of Visual Basic 2005 samples

and then the two really good articles on new features in AD support with .NET 2.0 and 3.5:

  • New Ways to Manage Active Directory in .NET 2.0
  • Managing Security Principals with .NET 3.5
like image 95
marc_s Avatar answered Feb 07 '23 04:02

marc_s


Detailed explanation and code samples can be found here:

http://www.dotnetspider.com/resources/2137-Active-Directory-Au-entication-wi-Form-Based-Au.aspx

here:

http://www.dotnetspider.com/resources/17208-Authenticate-user-against-active-directory.aspx

and here:

http://www.vbdotnetheaven.com/UploadFile/ankithakur/Login_Using_Active_Directory11172006011336AM/Login_Using_Active_Directory.aspx

Hope it helps.

like image 41
ZokiManas Avatar answered Feb 07 '23 03:02

ZokiManas