I would like to use the ValidateUser method of the ActiveDirectoryMembershipProvider to validate that a user exists in AD.
I am taking in the username and password in a form. I would like to then instantiate the provider and call ValidateUser
<add name="AspNetActiveDirectoryMembershipProvider"
type="System.Web.Security.ActiveDirectoryMembershipProvider"
connectionStringName="ADConnection"
attributeMapUsername = "userPrincipalName" />
I just replace real values with test for the post..
<add name="ADConnection" connectionString="LDAP://test.test.test.com/dc=test,dc=com" />
To do what I want to do, do i need to provide a username and password to the provider so it can connect in first place, i.e. a system account.. and once its established I can then check the user I want to validate?
Thanks, J