Share via


IIsCertMapper.CreateMapping (ADSI)

The CreateMapping method maps an SSL certificate to a Windows account.

objIIsCertMapper.CreateMapping(
  vCert As VARIANT,
  bstrNtAcct As BSTR,
  bstrNtPwd As BSTR,
  bstrName As BSTR,
  lEnabled As LONG
)

Parameters

  • vCert
    [in] VARIANT containing the certificate. The certificate is either a string or an array of bytes, usually obtained from the Request.ClientCertificate Collection collection of the built-in ASP Request Object.

  • bstrNtAcct
    [in] String containing the Windows NT account name.

  • bstrNtPwd
    [in] String containing the Windows NT password.

  • bstrName
    [in] String containing the friendly name for the account.

  • lEnabled
    [in] Long integer containing TRUE to enable the mapping, FALSE to disable the mapping

Return Values

This method has no return values.

Example Code

<%  
  Dim CertObj, vCert  
  vCert = Request.ClientCertificate("CERTIFICATE")  
  Set CertObj = GetObject("IIS://<path>/IIsCertMapper")  
  CertObj.CreateMapping vCert, "MYACCT", "MYPASS", "My Name", True  
%>  

Requirements

Client: Requires Windows XP Professional, Windows 2000 Professional, or Windows NT Workstation 4.0.

Server: Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0.

Product: IIS

See Also

Concepts

IIsCertMapper (ADSI)

Using ADSI to Configure IIS