web-page-on-a-laptop-screen-a-mobile-phone-is-lying-a-cloud-a-cloud-service-or-an-application-modern-technological-background-isometry-conceptual-banner-of-web-technologies-vector

Active Directory Authentication In Web Application

Active directory Authentication using forms authentication and login control in ASP.NET:

For Active directory authentication in asp.net using login control we have to follow the following steps.

Step 1:

Create login page with asp.net login control. No need to add code, login control automatically will check from the web config  settings.

Step 2:

Add the following in web config file.


   

      

         

      

   

   

   

      

   

   

      

      

   





   

1) In the tag


defaultProvider="MembershipADProvider" is the name of provider in the tag





2) The tag


consists the credentials for accessing AD server. In this user name is user name with domain.

3) In the tag


connectionStringName="ADConnectionString" is the connection string name which consists the AD server details.

4)

in the connection string


connection string is the AD server details.

in

LDAP://mindfiresolutions.bbsr.in/DC=mindfiresolutions,DC=bbsr,DC=in

mindfiresolutions.bbsr.in is the AD server.

DC=bbsr,DC=in are .bbsr.in in mindfiresolutions.bbsr.in


if AD server is mindfiresolutions.bbsr then connection string will be



If we configure the above login control will automatically authenticates the user against and ActiveDirectoryMembershipProvider.

5) Forms authentication settings.




1714 980 Burnignorance | Where Minds Meet And Sparks Fly!