Microsoft KB Archive/202024

= CIPM Connect Method May Fail via ASP Script =

Article ID: 202024

Article Last Modified on 6/29/2004

-

APPLIES TO


 * Microsoft Site Server 3.0 Commerce Edition

-



This article was previously published under Q202024



SYMPTOMS
The Connect method of the InterchangeManager object may fail when called via an Active Server Page script if Allow Anonymous access is enabled for the ASP page.

The Connect method of the InterchangeManager object fails to connect to the CIPM database under the security context of the IUSR anonymous account if the anonymous account does not have at least read permissions on the Cipm.mdb database.



CAUSE
By default, the Cipm.mdb database is installed to the \Microsoft Site Server\Data\CIP Manager\ directory and by default, the IUSR anonymous account does not have access to this directory when CIPM is installed on an NTFS partition.

When a connection is you negotiated to a Web server that has all methods of authentication enabled, IIS will always accept anonymous first. Under these circumstances, an administrator with full rights to the Cipm.mdb database file may be unable to execute an ASP script that uses the Connect method of the InterchangeManager object. This occur because IIS is attempting to gain access to the CIP Manager database under the security context of the anonymous account, which may have no rights to this file.



WORKAROUND
To work around this behavior, you must either disable anonymous access to the virtual directory housing the script, and thereby forcing Windows NT Challenge Response or Basic authentication, or give the IUSR anonymous account at least read access to CIP Manager database file (Cipm.mdb).



MORE INFORMATION
If you access the script below as the IUSR anonymous account when the anonymous account does not have at least read permissions to the CIP Manager database (Cipm.mdb), the script will fail with the following error message:

Sorry, Insufficient credentials to read CIP Manager database. (err.number = 0x81000006)

<% Response.Expires = 0 %>   Connect to CIP Manager Database  



<% On error resume next

Dim cipManager Dim Home

Set cipManager = Server.CreateObject("IMCore.InterchangeManager")

cipManager.Connect CheckError "Insufficient credentials to read CIP Manager database"

Set home = cipManager.home

%>

Use this page to view the Home Organization name listed in the CIP Manager database.
 Home Organization is <%=home.name%> 

<% Sub CheckError(statement) If Err.Number <> 0 Then Response.Write "Sorry, " _ & statement _ & ". (err.number = 0x" _        & CStr(Hex(Err.Number)) _                    & ")" Response.End End If End Sub %>

Additional query words: CIPM vbscript

Keywords: kbprb KB202024

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.