Ask a Question related to ASP.NET Security, Design and Development.
-
Nils Magnus Englund #1
Combining forms and Windows authentication
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
Nils Magnus Englund Guest
-
Windows and Forms Authentication together ???
Hi, I am trying to create a site that will be used by both employees and external users, so both types of users trying to access the same pages. ... -
Forms and Windows Authentication
Hello! I have a project that I'm working on and have some thoughts on how to secure it but was hoping to get suggestions on the feasibility of my... -
Windows and Forms Authentication
Hi, I need some help on building a security model for an intranet I am currently building. I am aware that Intranets lend themselves quite... -
Forms authentication with Windows authentication
Hi, I have an ASP.NET web site that uses IIS Basic Authentication and accesses an OLAP Server at various stages. The OLAP Server authentication... -
Forms / Windows Authentication
I have an application where I would like to present a nice HTML based login page but log the user in using Windows Authentication. I know that...



Reply With Quote

