WindowsAuthenticationSection 类
使用集成 Windows 身份验证。
语法
class WindowsAuthenticationSection : ConfigurationSectionWithCollection
方法
下表列出了 WindowsAuthenticationSection
类公开的方法。
名称 | 说明 |
---|---|
添加 | (继承自 ConfigurationSectionWithCollection。) |
清除 | (从 ConfigurationSectionWithCollection 继承。) |
Get | (从 ConfigurationSectionWithCollection 继承。) |
GetAllowDefinition | (继承自 ConfigurationSection。) |
GetAllowLocation | (从 ConfigurationSection 继承。) |
删除 | (从 ConfigurationSectionWithCollection 继承。) |
RevertToParent | (从 ConfigurationSection 继承。) |
SetAllowDefinition | (从 ConfigurationSection 继承。) |
SetAllowLocation | (从 ConfigurationSection 继承。) |
属性
下表列出了 WindowsAuthenticationSection
类公开的属性。
名称 | 描述 |
---|---|
AuthPersistNonNTLM |
一个读/写 boolean 值。 若要 IIS 自动重新验证每个非 NTLM(例如 Kerberos)请求(即使是相同集合上的请求也是如此),则值为 true ;否则值为 false 。 默认为 false 。 注意:若设置为 false ,则表示客户端在同一连接上只会进行一次身份验证。 IIS 将在服务器上为已建立的 TCP 会话缓存令牌或票证。 |
AuthPersistSingleRequest |
一个读/写 boolean 值。 若要 IIS 自动重新验证每个 NTLM 请求(即使是相同集合上的请求也是如此),则值为 true ;否则值为 false 。 默认为 false 。 注意:若设置为 false ,则表示客户端在同一连接上只会进行一次身份验证。 IIS 将在服务器上为已建立的 TCP 会话缓存令牌或票证。 |
Enabled |
一个读/写 boolean 值。 启用集成 Windows 身份验证时,为 true ;否则为 false 。 默认为 false 。 |
Location |
(继承自 ConfigurationSection 。)一个键属性。 |
Path |
(继承自 ConfigurationSection 。)一个键属性。 |
Providers |
AuthenticationProviderSettings 值指定用于集成 Windows 身份验证的安全支持提供程序。 |
SectionInformation |
(从 ConfigurationSection 继承。) |
UseKernelMode |
一个读/写 boolean 值。 集成 Windows 身份验证在内核模式下完成时,为 true ;否则为 false 。 默认为 true 。 注意:使用内核模式可提高身份验证性能。 但如果要在 Web 场中使用 Kerberos 协议,可能需要将此属性设置为 false 。 |
子类
此类不包含子类。
继承层次结构
ConfigurationSectionWithCollection
WindowsAuthenticationSection
要求
类型 | 描述 |
---|---|
客户端 | - IIS 7.0(在 Windows Vista 上) - IIS 7.5(在 Windows 7 上) - IIS 8.0(在 Windows 8 上) - IIS 10.0(在 Windows 10 上) |
服务器 | - IIS 7.0(在 Windows Server 2008 上) - IIS 7.5(在 Windows Server 2008 R2 上) - IIS 8.0(在 Windows Server 2012 上) - IIS 8.5(在 Windows Server 2012 R2 上) - IIS 10.0(在 Windows Server 2016 上) |
产品 | - IIS 7.0、IIS 7.5、IIS 8.0、IIS 8.5、IIS 10.0 |
MOF 文件 | WebAdministration.mof |
另请参阅
AnonymousAuthenticationSection 类
AuthenticationProviderSettings 类
AuthenticationSection 类
BasicAuthenticationSection 类
ClientCertificateMappingAuthenticationSection 类
ConfigurationSectionWithCollection 类
DigestAuthenticationSection 类
FormsAuthenticationConfiguration 类
FormsAuthenticationCredentials 类
FormsAuthenticationUser 类
IisClientCertificateMappingAuthenticationSection 类
PassportAuthentication 类
StringElement 类