I am trying to get a user to enter their domain login details, so the site can obtain a list of groups to determine what database to connect to.
The nearest code i have found, is from microsoft:
How to authenticate against the Active Directory by using forms authentication and Visual Basic .NET
As i am using IIS8, ASP 4.5 the code fails in the web.config referring to
<identity impersonate="true" />
HTTP Error 500.24 - Internal Server Error
An ASP.NET setting has been detected that does not apply in
Integrated managed pipeline mode.
Ok, so i remove this entry and it authentications with my domain but when it redirects the same logon page appears, i assume as nothing is telling it impersonate.
Further digging seems that i may not be able to use this code as it doesn't support managed pipeline mode. I do not want to use asp memberships as using domain groups to authenticate rights.
Help!
Want to keep integrated managed pipe and am using ASP.Net impersonation so i can use the authenticated ad user to authenticate against sql database.
