Last post Oct 27, 2016 04:33 PM by amerta
Oct 27, 2016 02:06 PM|amerta|LINK
hello , can i help me please with link of (use Forms authentication with Active Directory in ASP.NET 4
) because i cant found any link with asp.net 4
, i found just with asp.net 2
Oct 27, 2016 02:18 PM|Siva Krishna Macha|LINK
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.
Just as a side note:
For later versions (MVC 5):
Oct 27, 2016 02:30 PM|amerta|LINK
ie the link https://msdn.microsoft.com/en-us/library/ff650308.aspx can not work with asp.net mvc 4
Oct 27, 2016 02:43 PM|Siva Krishna Macha|LINK
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/
Oct 27, 2016 02:55 PM|amerta|LINK
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?
Oct 27, 2016 04:28 PM|Siva Krishna Macha|LINK
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.
Oct 27, 2016 04:33 PM|amerta|LINK
ok , thank's Siva :)