I’m trying to authenticate users onto a MVC3 application using Active Directory (without login page), in addition to managing access to parts of the application based on the users groups. I’ve searched far and wide with no end to end example. I was hoping someone could assist. My Active Directory settings are: CN=Test User,OU=NETDOM,DC=NETLAB,DC=COM.
Thanks
Under your
appSettingsyou should addand then under
the first items under
appSettingsturns off the automatic redriection to the/account/loginroute. while theauthenicationnode turns on Windows Auth in IIS.so long as they are on the domain the server is on then this should work without having to implement any authentication
Edit
if you want to use the membership provider then add under the
system.webnode.then all you would have to do is in the Global.asax add an event handler for
to check against AD.
be careful here as this event is fired for ALL requests on the server and could effect performance.