In order to run this sample, you need the following software installed:
Exchange Server Machine
Microsoft Windows NT Version 4.0 with Service Pack 4
Microsoft Exchange Server Version 5.5 with Service Pack 1
Internet Information Server Machine
Microsoft Internet Information Server Version 4.0 or later
Microsoft Active Directory Services Interfaces (ADSI) Version 2.0 or later
Microsoft ActiveX Data Object Version 1.5 or later.
AcctCrt COM component registered on this server.
Client
Microsoft Internet Explorer Version 4.0 or other level 4 browser.
Registering the COM Components on Your Server
To register the AcctCrt (acctcrt.dll) COM component, you must first build it using Visual C++ Version 5.0 or later (source code and Visual Studio projects are available in the Database and Messaging portion of the Platform SDK under Exchange) and then copy the component to the machine on which you're running the ASP sample. Type regsvr32.exe acctcrt.dll at a command prompt to register the component and make it available to the COM runtime. See the section Building the Sample Applications for additional notes. The ADSLDP (ADSI LDAP provider) and MSADO15 (ADO 1.5 component) components should already be installed on your IIS machine. See the proceeding list of required software for more information.
Configuring IIS to Run the Sample
The steps that follow describe how to create and configure an Internet Information Server (IIS) ASP application to run the sample.
Start the Microsoft Management Console (MMC) and open the IIS snap-in. (typically C:\Winnt\System32\Inetsrv\Iis.msc).
Create a new virtual directory and provide an application name. Map a physical directory to the virtual directory that contains the files for the sample. These files are located in the [c:\mssdk]\Samples\dbmsg\Exchange\Mailbox directory of your Platform SDK installation.
Select the permissions for the virtual directory. You must have script access allowed.
Select the virtual directory's Documents property page, select Enable Default Document, select Add, and add Logon.asp to the list. When users open the URL http://machine/virtual-directory, they are guided to the logon page. (substitute your virtual directory in the URL above)
View the properties for the new virtual directory. Verify that an application with your selected name is listed under Application Settings on the property page. Select Configuration and look on the Application Mappings property page to verify that files with the extension .ASP and .ASA map to the dynamic link library Asp.dll.
Security - Set the directory security level using the Directory Permissions tab of the virtual directory properties. Set Basic Authentication, NTLM Authentication, or both.
Basic Auth - if your client applications are going to access the sample across a proxy server, or the Exchange Server for which you wish to manage mailboxes resides on a different machine than IIS, or the client machine does not support NTLM, enable Basic Authentication only. In this case, run the sample using a Secure Sockets Layer (SSL) if possible. (Basic Authentication sends the credentials in a simple UUEncoded format and thus is essentially plain-text)
Note - Basic Authentication over SSL is the recommended configuration for the sample.
NTLM - To use NTLM authentication, you must have the Exchange Server and IIS running on the same machine, and you can only administer the mailboxes for the local Exchange Server. If the Exchange Server you want to manage is not on the same machine as the IIS server, authenticated LDAP binds will fail and the user will bind only as anonymous. This causes the creation new mailboxes to fail.