我的web.config中有<authentication mode="Windows">
。
我不想使用<authentication mode="Forms">
创建另一个解决方案,但我确实需要允许外部访问我的Intranet Web应用程序。
有一种方法可以允许使用Windows-Authentication-using-Form-Authentication
http://dotnetslackers.com/articles/aspnet/Windows-Authentication-using-Form-Authentication.aspx
不幸的是,为了以上工作,我仍然需要
<authentication mode="Forms">
<forms loginUrl="login.aspx" name=".ASPXFORMSAUTH">
</forms> </authentication>
有没有办法让我的sln解决方案中的第二个<authentication mode="Forms">
?
答案 0 :(得分:1)
您应该查看Microsoft ISA Server 2006.您可以使用它通过html表单登录页面启用Windows身份验证会话,该页面在客户端上存储cookie。对于ASP.NET Web应用程序,用户查看Windows身份验证客户端。 ISA Server为您维护表单身份验证到Windows身份验证的映射。我曾经在使用SharePoint和ASP.NET Windows身份验证的系统上工作过,效果很好。