This post will show you how to use forms authentication with Microsoft Active Directory directory service by using the ActiveDirectoryMembershipProvider .
To create a Web application with a logon page Start Microsoft Visual Studio® .NET development system, and then create a new ASP.NET Web site called FormsAuthAD. Use Solution Explorer to add a new Web form to the site called Login.aspx. Add a Login control to Login.aspx. By default, this control displays a user name field, a password field, and a Remember me next time checkbox. If the user selects this checkbox, a persistent authentication cookie is created and the user's browser stores the cookie on the user's computer. For security reasons, you should avoid creating persistent authentication cookies; therefore, disable this feature by setting the DisplayRememberMe property of the Login control to false . Note that when a user clicks Login on the Login control, it automatically validates the user by calling the con...