CreateMapping
The CreateMapping method of the IIsCertMapper object creates a mapping between a certificate and a Windows NT® account.
Syntax
IIsCertMapper.CreateMapping vCert, NtAcct, NtPwd, strName, IEnabled
Parameters
-
vCert
-
Contains the certificate. The certificate is either a string or an array of bytes, usually obtained from the ClientCertificate collection of the built-in ASP Request object.
-
NtAcct
-
Contains the Windows NT account string.
-
NtPwd
-
Contains the password string for NtAcct.
-
strName
-
Contains the friendly name for the account.
-
IEnabled
-
Specifies True to enable the mapping, False to disable the mapping.
Code Example
<%
Dim CertObj, vCert
vCert = Request.ClientCertificate("CERTIFICATE")
Set CertObj = GetObject("IIS://..path../IIsCertMapper")
CertObj.CreateMapping vCert, "MYACCT", "MYPASS", "My Name", True
%>
See Also
GetMapping, DeleteMapping, SetEnabled, SetName, SetPwd, SetAcct
© 1997 by Microsoft Corporation. All rights reserved.