I'm developing an ASP.NET MVC 5 app with .NET Framework 4.5.1 and C#.
On web.config
I have added this:
<authentication mode="Windows" />
<authorization>
<deny users="?" />
</authorization>
And set on ASP:NET MVC Visual Studio project Windows authentication enabled
and disabled Anonymous authentication
.
This app will be use inside an Intranet, and I am confuse because I have found this article, How To: Secure your ASP.NET MVC application and use Active Directory as the Membership Provider, and it tells that I have to use a connection string to LDAP.
Is that necessary?
Now, when I try to enter the app I have to put my domain credentials and it works fine.
I ask this because I want to secure my controllers with Active Directory Groups
and, on the same blog, here: How to use Active Directory groups to restrict access to controller actions in ASP.NET MVC and make your application even more secure!, tells how to do it but I'm not sure if I need to add an LDAP connection to my app.