在IIS Prioritise Windows身份验证在匿名身份验证 [英] Prioritise Windows Authentication over Anonymous Authentication in IIS

查看:407
本文介绍了在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发展。

推荐答案

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

You could do the steps in this article: http://msdn.microsoft.com/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身份验证在匿名身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆