Intranet WebSite with Windows Authentification and Forms Authentification
<p>Ok, so my background to the problem that i am facing is:</p>

<p>I was given a project to built an intranet website for my company in C# and ASP.NET. At first the specifications were that the site would have a normal login based page with forms (so Forms Authentification). After the project was done, about 90%, the specifications changed. Now the website must have windows mode and forms mode authentification, meaning that, if a users that is accesing the site is on a computer that belongs to a certain Domain it will be automatically logged in, if he isn't in that domain then he must logg in with username and password from database. After hat, i must know in what Group(table in the database) the user is to let him see or not some pages, so i must get the user -username and find the id in the database and so on (this is a different story).</p>

<p>So, this is world crashing for me, for the last two days i was surfing the internet to find out methods, but I have not found anything concrete. I found a method submited by Paul <a href="http://aspalliance.com/553_Mixed_Mode_Authentication" rel="nofollow">http://aspalliance.com/553_Mixed_Mode_Authentication</a>, but this is for .Net 1... and some comments told that it wouldn't work for later editions. Other thing i found that could help me is Active Directory but did not understand much, and so one. </p>

<p>If you can give me some steps to follow, articles, links, maybe the Holly Code. thanks in advance.</p>

<p>Plus one more question, is there a way that i can be notified that login failed in IIS for something like this : if the windows authentification failed => use forms authentification..</p>

<p>Reminder - i'm new (junior programmer)</p>
