Hi!

I've read Paul Wilsons article on mixing forms and Windows authentication
([url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/htm[/url]
l/mixedsecurity.asp), but I didn't quite get it to work. I abandoned the
idea of sharing the same login page (since it doesn't give me any added
value for my application). I have a functional forms authentication now.

I've created a new page "WinLogin.aspx" (which doesn't contain any html,
only codebehind code). I've given everyone access to WinLogin.aspx using
Web.config:

<location path="WinLogin.aspx">
<system.web>
<authorization>
<allow users="?,*" />
</authorization>
</system.web>
</location>

I have also removed anonymous access to WinLogin.aspx in the IIS management
console.

In WinLogin.aspx.cs's Page_Load event, I have:

string Username = this.Request.ServerVariables["LOGON_USER"];
FormsAuthentication.RedirectFromLoginPage(Username , false);

Still, the windows login doesn't work as I hoped...

What am I doing wrong?

Thanks.


Sincerely,
Nils Magnus Englund