How to Map Windows Accounts with Certificates
- J.D. Meier, Carlos Farre, Jason Taylor,
Prashant Bansode, Steve Gregersen, Madhu Sundararajan, Rob Boucher
If you are using certificates authentication you can map certificates to Windows accounts to enable authentication and authorization based upon the Windows account.
You can map an X509 certificate to windows account by setting the mapClientCertificateToWindowsAccount
property to true. By default, when using the certificate client credential type on bindings, the certificate is not mapped to Windows accounts.
Use the following steps to map certificates to Windows accounts:
- Select IIS vs Active Directory Mapping.
- IIS Mapping is useful if you need only a limited number of mappings or a different mapping on each WCF Service.
- Use Active Directory mapping when the account mappings are identical on all IIS servers. Active Directory mapping is easier to maintain than IIS mapping because you only have to create the mapping in one location.
- Configure the IIS / Active directory for mapping the certificates.
- Once you have enabled the client certificate mapping feature, set the mapClientCertificateToWindowsAccount property to true.
* <authentication mapClientCertificateToWindowsAccount="true" />*