Last post Jun 04, 2014 09:09 AM by Wozer
Jun 03, 2014 10:33 PM|Wozer|LINK
I have been trying to figure out if you can use Active Directory for authentication on an Internet MCV site. The stuff I have been finding searching on google all talk about an Intranet application.
Is this possible to do?
Jun 04, 2014 02:19 AM|ignatandrei|LINK
if you can use Active Directory for authentication on an Internet MCV site.
Maybe you want to say "intranet" . Just read the "readme.txt" that comes with MVC template "
To enable Windows authentication on Windows:
Jun 04, 2014 02:28 AM|smirnov|LINK
it depends where your AD is located. AD is a core component in a Windows-based enterprise network and that's why it's a standard for authentication in asp.net intranet applications. It
could be expanded outside of a corporate network (i.e. internet), though this complicates the security and setup of the network rather considerably. So, if a user inside your organization needs to be authenticated with the same identity against remote
website then you either need to have
an AD replication or use ADFS. If you need to authenticate any user against AD at remote site then I think there should be no problem.
Jun 04, 2014 03:00 AM|CPrakash82|LINK
I have been trying to figure out if you can use Active Directory for authentication on an Internet MCV site.
You can use
ActiveDirectoryMembershipProvider to authenticate the user with AD, it can be cofigured along with AD Connection string and get you going. Remember you are still required to use FormAuthentication to drop the authentication cookie to client
machine to validate the user in subsequence request.
Jun 04, 2014 05:49 AM|pprasannak|LINK
You can enable Active Directory authentication on Internet. There are two approaches
- On the IIS enable windows authentication. This is what you are referring above. Although this is recommended for intranet, but you can use it on Internet also
- Another approach is to have a login page (similar to forms authentication). For this you can use the ActiveDirectoryMembershipProvider. If you don't want to use membership, checkout this code
How to authenticate against the Active Directory by using forms authentication and Visual Basic .NET
Jun 04, 2014 09:09 AM|Wozer|LINK
Thanks for these replies, they answered what I was looking for perfectly!