My project is what I thought is probably a popular one, so I'm hoping the solution is easy enough. To develop an Intranet using the functionality of forms authentication, but automatically logs in authenticated Active Directory users with their Windows authentication (so they do not have to sign in again after logging onto a computer).

So far I've got an ASP.NET(v4.0) website using Windows Authentication on IIS6 and it works well.

I've followed the posts listed below, but with my limited knowledge of asp.net & vb.net I'm struggling to get these solutions working - and I've also noted they are quite old so hopefully in later versions of .NET this has been sorted (though I cannot find anything). Or failing that, can any verify and expand on any of these so at least I know if they are still valid, and can look again at my interpretation.

http://beensoft.blogspot.co.uk/2008/06/mixing-forms-and-windows-authentication.html
http://blog.repsaj.nl/index.php/2007/08/mixing-forms-based-and-windows-authentication-in-aspnet/
http://msdn.microsoft.com/en-us/library/ms972958.aspx
http://www.codeguru.com/csharp/.net/net_security/authentication/article.php/c19559/ASPNET-Mixed-Mode-Authentication.htm

Can anyone please point me in the right direction?

Thanks

I will not mark this as solved just yet as I'd be interested to know if anyone has a solution, but just for the record - I'm going with Windows Authentication...

I've followed the steps in one of the links you posted: http://msdn.microsoft.com/en-us/library/ms972958.aspx. You may notice that you can download the author's source code as well.

In any event, if this web app is for internal users only within the same domain or trusted domain, then Windows Authentication is an adequate solution. The only time you'll need forms based authentication is when a non-domain user tries to access the site. I would not build in additional complexity into the project if you do not absoluately have that extra requirement.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.