我见过其他的答案说,如何保护虚拟文件夹仅用于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身份验证在匿名身份验证
发布评论