在IIS匿名访问和NTLM身份验证 [英] Anonymous access and NTLM authentication in IIS

查看:1526
本文介绍了在IIS匿名访问和NTLM身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一台服务器设置了IIS和我的网站有一些页面应该允许匿名访问,并应要求集成Windows身份验证部分页面。在IIS中的身份验证方法屏幕看起来你可以同时启用集成Windows身份验证和匿名访问,但我看过的文件似乎表明您只能使用一个或另一个。

I have a server set up with IIS, and my site has some pages which should allow anonymous access and some pages which should require the "Integrated Windows authentication". On the Authentication Method screen in IIS it looks like you can enable both "Integrated Windows Authentication" and anonymous access, but the documentation I've read seems to indicate you can only use one or the other.

有谁知道如何让某些页面的匿名访问,并要求别人NTLM身份验证?

Does anyone know how to allow anonymous access to some pages and require NTLM authentication on others?

谢谢,

推荐答案

您必须使用的的.aspx相对=nofollow>授权部分。

You have to use the authorization section in web.config.

为了让只有特定的文件夹需要身份验证,您可以用web.config中像这样子文件夹中只授权元素:

To make only specific folders require authentication, you can have web.config with only the authorization element in subfolders like so:

<configuration>
   <system.web>
      <authorization>
         <deny users="?" />
      </authorization>
   </system.web>
</configuration>

这篇关于在IIS匿名访问和NTLM身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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