在IIS Prioritise Windows身份验证在匿名身份验证

编程入门 行业动态 更新时间:2024-10-28 21:27:47
本文介绍了在IIS Prioritise Windows身份验证在匿名身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我见过其他的答案说,如何保护虚拟文件夹仅用于Windows身份验证。我想允许匿名和Windows身份验证在IIS中,但在匿名身份验证优先Windows身份验证。这样做的原因是,Web应用程序我建设需要支持匿名访问和特权。

I've seen other answers saying how to secure virtual folders for Windows Authentication only. I would like to allow both anonymous AND Windows Authentication in IIS, but prioritise Windows Authentication over Anonymous Authentication. The reason for this is that the web app I am building needs to support anonymous access as well as privileged.

这可能吗?即如果Windows身份验证无法对域进行身份验证,它会回落到一个通用的身份,而不是给它有利于匿名访问开箱的方式。

Is this possible? I.e. if Windows Authentication cannot authenticate against the domain, it will fall back to a generic identity, as opposed to the way it works out of the box by favouring anonymous access.

在IIS上W7发展。

推荐答案

您可以做的步骤在本文中:的 msdn.microsoft/en-us/library/ms972958.aspx

You could do the steps in this article: msdn.microsoft/en-us/library/ms972958.aspx

和则只是不重定向到登录页面。基本上你捕获验证错误,继续向前。

And then just don't redirect to a login page. Basically you trap the authentication error and keep going.

更多推荐

在IIS Prioritise Windows身份验证在匿名身份验证

本文发布于:2023-10-13 00:42:05,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1486324.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:身份验证   IIS   Prioritise   Windows

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!