Asked by:
use Forms authentication with Active Directory in ASP.NET 4

Question
-
All replies
-
User-484054684 posted
Are you looking it for ASP.NET MVC 4 application? If so, this article explains lot of customizations you could do: https://codeutil.wordpress.com/2013/05/14/forms-authentication-in-asp-net-mvc-4/
If it's web forms, probably I would assume these asp.net 2.0 articles could still work.
http://www.codeproject.com/Articles/667125/Forms-Authentication
Just as a side note:
For later versions (MVC 5):
http://www.code.colostate.edu/active-directory-authentication-in-aspnet-mvc-5.aspx
Thursday, October 27, 2016 2:18 PM -
User-1105778986 posted
ie the link https://msdn.microsoft.com/en-us/library/ff650308.aspx can not work with asp.net mvc 4
Thursday, October 27, 2016 2:30 PM -
User-484054684 posted
ok so - probably this might help - this article has concise explanation of using AD and forms authentication in MVC here: https://www.ricardodsanchez.com/how-to-secure-your-asp-net-mvc-application-and-use-active-directory-as-the-membership-provider/
Thursday, October 27, 2016 2:43 PM -
User-1105778986 posted
ok , because i don't change the code of my project , i want just to change on the web.config file . another question please ; when i tested the application , i need midification on the active directory of the client or just change connectionString of my web.config with the DC of the active directory?
Thursday, October 27, 2016 2:55 PM -
User-484054684 posted
I don't think I understand your recent question. If you want to use your AD server - yes in the article provided, there is a connection string with name as "ADConnectionString" - change it's value with the appropriate value.
Thursday, October 27, 2016 4:28 PM -
User-1105778986 posted
ok , thank's Siva :)
Thursday, October 27, 2016 4:33 PM