X509ClientCertificateAuthenticationElement.MapClientCertificateToWindowsAccount 属性

定义

获取或设置一个值,该值指示是否将证书映射到 Windows 帐户。Gets or sets a value that indicates whether the certificate is mapped to Windows accounts.

public:
 property bool MapClientCertificateToWindowsAccount { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("mapClientCertificateToWindowsAccount", DefaultValue=Mono.Cecil.CustomAttributeArgument)]
public bool MapClientCertificateToWindowsAccount { get; set; }
[<System.Configuration.ConfigurationProperty("mapClientCertificateToWindowsAccount", DefaultValue=Mono.Cecil.CustomAttributeArgument)>]
member this.MapClientCertificateToWindowsAccount : bool with get, set
Public Property MapClientCertificateToWindowsAccount As Boolean

属性值

Boolean

如果将证书映射到 Windows 帐户,则为 true;否则为 falsetrue if the certificate is mapped to Windows accounts; otherwise, false. 默认值为 falseThe default is false.

属性

注解

仅当 MapClientCertificateToWindowsAccount 属性设置为 true 时,此属性才有效。This property is valid only when the MapClientCertificateToWindowsAccount property is set to true.

使用绑定上的证书客户端凭据类型时,不会将证书映射到 Windows 帐户。When using the certificate client credential type on bindings, the certificate is not mapped to Windows accounts. 可以使用此属性重写此行为。You can override this behavior using this property. 此属性设置为 true 时,它会导致客户端证书的标识映射到 Windows 帐户。When this property is set to true, it causes the identity from the client certificate to be mapped to a Windows account. 它要求以特权帐户运行服务,并将域配置为支持此功能。It requires that the service is running in a privileged account and that the domain be configured to support this functionality.

适用于