I am developing a web app that needs to authenticate users against Active Directory. I have successfully developed web apps that use the SQL membership provider and windows authentication, but this is my first using AD.
I am using Visual Studio 2005 and ASP.NET 2. I am developing on an XP desktop that is not joined to our domain. The web app will ultimately reside on a server that is also not joined to the domain. But the users who will be using this web app will be defined in AD groups and I will be using their group membership to determine role access.
To test this out before integrating it into my web app (which is underway) I created a new simple web app and a login page and configured it to require authentication in the web.config in accordance with this doc: http://msdn2.microsoft.com/en-us/library/ms998347.aspx#paght000022_usingtheactivedirectorymembershipprovider
At first, I had trouble connecting to the AD server, but I think I had problems with the DC decorations in the connection string maybe not matching the domain name properly. I think I have that straightened out now because I dont get any more complaints about not being able to connect.
Now the problem is that authentication just never succeeds. Following is the important parts of the web.config:
<compilation debug="false" />
<deny users="?" />
<allow users="*" />
Version=126.96.36.199, Culture=neutral, PublicKeyToken=b03f5f7f11d
I think the only deviation I took from the MSDN article I referenced above is that I am using my credentials for connectionUsername and connectionPassword. The article says it should be Administrator but I dont understand why it would be administrator. I dont need to be administrator to log into Outlook with my own credentials and get my email. If it does need to be administrator, I dont know how I will try explain to our IT department why I need the password for the domain administrator account. Am I just not understanding something here?
Or what else may be wrong that I cannot log into my web app with my own user credentials?