IIS 7.5 我做错了什么?
在 Windows 7 Utilmate 下的 IIS 7.5 中,我有一个配置为身份验证的应用程序,如下所示: 匿名& Windows
在 ASP.NET 网站中,我已将 Forms 身份验证和身份模拟 = true 我也拒绝任何匿名用户。
<authentication mode="Forms">
</authentication>
<identity impersonate="true"/>
<authorization>
<deny user="?">
</authorization>
IIS 抱怨。我做错了什么... 我想要实现的目标:我想要 Windows 登录用户,以便我可以构建 FormsAuthentication 票证并将其传递给被动 STS。 因此,在 IIS 中,我有匿名和 Windows...如果只勾选了 Windows,我无法进入 Login.aspx 页面,因为我有一个额外的参数要从那里传递。 所以现在在 webconfig 中,我通过拒绝用户 =“?” 来禁用匿名用户。 ,所以它给我留下了经过身份验证的 Windows 用户,但使用表单身份验证。你知道我的意思吗?
http://msdn.microsoft.com/en-us/library/ff649264。 aspx
如果您看到表 4 IIS Integrated Windows for IIS 那么 Web.config 设置第 3 行,相应的 WindowsIdentity 为 Domian\Username 。它适用于 XP 下的 IIS 6.0 win2003/IIS 5.1
In IIS 7.5 under Windows 7 Utilmate, I have an application which is configured for authentication as follows:
Anonymous & Windows
In the ASP.NET Website, I have turned Forms authentication and identity impersonate = true
I also deny any anonymous users.
<authentication mode="Forms">
</authentication>
<identity impersonate="true"/>
<authorization>
<deny user="?">
</authorization>
IIS complains. What am I doing wrong...
What I want to achieve :I want the windows Logged On User so I can build a FormsAuthentication ticket and pass it to a Passive STS.
So in IIS I have anonymous and windows...If have only windows ticked, I cannot go onto the Login.aspx page as I have an extra parameter to be passed from there.
So now in webconfig, I then disable anonymous users by saying deny user="?" , so it leaves me with the authenticated windows user but using Forms Authentication.You know what I mean??
http://msdn.microsoft.com/en-us/library/ff649264.aspx
If you see Table 4 IIS Integrated Windows for IIS then Web.config setting 3rd row, accordingly WindowsIdentity is Domian\Username .It works on IIS 6.0 win2003/IIS 5.1 under XP
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果这是一个利用基于声明的身份的应用程序,则对用户进行身份验证的责任在于 STS 本身,而不是应用程序。
如果您将(Web)应用程序配置为信任外部 STS,那么您的身份验证模式将为“无”,并且您的配置文件中将有一整段“Microsoft.身份模型”。然后,您可以在那里配置 STS 地址(发行者属性)。像这样的事情:
STS 本身可能使用表单身份验证或其他身份验证,具体取决于实现。
If this is an application that leverages claims based identity, then the responsibility of authenticating users is in the STS itself, not in the app.
If you are configuring your (web) application to trust an external STS, then your authentication mode would be "None" and you'd have a whole section in the config file for "Microsoft.identityModel". You would then configure the STS address there (the issuer attribute). Something like this:
The STS itself might use Forms authentication or something else, depending on the implementation.