Oracle Application Server Provider for Microsoft Exchange 2003 - Installation Instructions
OracleAS
Portal Integration Solutions
Oracle Application Server Provider for Microsoft Exchange 2003 - Installation instructions
| Last Updated: |
June 2005 |
| Status: |
Production |
| Portlet Name: |
exchange |
Contents
Introduction Requirements
Deploying the Oracle Application Server Provider Microsoft Exchange 2003
Installing the ASP files on Internet
Information Server (IIS)
Create a new virtual directory on
the IIS default web site
Configure your new virtual directory
to use basic authentication
Give users the right to
log on
locally to the
IIS server
Test basic authentication for your
new virtual directory
Configure the location of files with
the .mmp extension
Test the ASP
page access to the sample Exchange 2003 mailbox
Passing on the session context from Portal to Microsoft Exchange Server 2003
Routing through Login Server
Using Microsoft ISAPI Filter
Updating provider.xml
Publishing the Oracle Application Server Provider for Microsoft Exchange 2003
Creating the External Application
Registering the Oracle Application Server Provider for Microsoft
Exchange 2003
Adding the Microsoft
Exchange 2003 Portlets to a Page
Customizing the Portlet to View
Your Mailbox
Introduction
This article describes
how to install the Oracle Application Server Provider for Microsoft Exchange 2003. The Oracle Application Server Provider for Microsoft Exchange 2003 use PDK-URL Services to allow you to view information from your Microsoft
Exchange 2003 components as Portlets on your OracleAS Portal page. Following are the
set of Portlets shipped as part of this download:
- Exchange 2003 Inbox
Portlet
- Exchange 2003 Calendar
Portlet
- Exchange 2003 Contacts
Portlet
Requirements
- Microsoft Exchange
Server 2003
- Microsoft Outlook Web Access
(installs with Microsoft Exchange 2003)
- Microsoft Internet Information
Server 5.0 or later (IIS)
- PDK-Java runtime and samples v9.0.4
or above
- OracleAS Portal 9.0.2 or
above
Deploying the Oracle Application Server Provider for Microsoft Exchange 2003
Deploy the Oracle Application Server Provider for Microsoft Exchange 2003 as per the instructions in the Installing Integration Portlet
document. Assuming that the provider is deployed at at location $IAS_HOME(MID_TIER)/j2ee/$OC4J_INSTANCE/applications/exchange/exchange.
Installing the ASP Files on Internet Information Server
(IIS)
The Oracle Application Server Provider for Microsoft Exchange 2003 come with a set of Active Server Pages (ASP) files, which need to be
installed. This stage of the installation assumes that you have successfully
installed Microsoft Exchange Server 2003 and Microsoft IIS 5.0 (IIS 5.0 comes as part
of Windows 2000 Advanced Server). Also, it is assumed that IIS and Exchange 2003
exist in the same Windows domain.
- Create a new virtual directory on
the IIS default web site
- Go to the machine that has Microsoft
IIS 5.0. You should have a Default Web
Site Content Directory
on this computer, e.g.,C:\Inetpub. Create a new directory here, e.g.
C:\Inetpub\exchange
The remainder of the
instructions contained in this document will refer to this directory as
$exchange_dir.
- Copy the htdocs folder located at:
$IAS_HOME(MID_TIER)/j2ee/$OC4J_INSTANCE/applications/exchange/exchange into the $exchange_dir directory created in the step a.
above on the IIS server machine.
- From the desktop, click Start
- Point to Programs, then Administrative
Tools, and then click
Internet
Services Manager.
- In the left pane of the Internet
Information Services
screen, you will see the name of your computer. Click on it and expand
it.
- Right-click the Default Web
Site, point to
New, and then click Virtual
Directory. You will be
shown a Wizard for creating a Virtual Directory.
- § Click on the Next for the first Welcome....
screen.
- Virtual
Directory Alias: Enter
the alias for this new virtual directory, say exchange
The remainder of the
instructions contained in this document will refer to this directory to as
your_virtual_directory.
- Click on Next.
- Web Site
Content Directory:
Click on Browse to select the $exchange_dir\htdocs directory in the Directory field.
- Click on Next.
- Access
Permissions: Accept the
default values in this screen and click on Next.
- Click Finish.
- Now, you need to create a
sub-directory called resources
in your_virtual_directory created in the step f. For
creating this, please follow these steps:
- In the left pane of the Internet
Information Services
screen, right-click on your_virtual_directory.
- Go to context menu’s New option, and then click Virtual
Directory.
- You will be
shown a Wizard for creating a Virtual Directory.
- Click on the Next
button for the first
Welcome....
screen.
- Virtual
Directory Alias: Enter
the alias for this new virtual directory, say resources
NOTE: The name of this
Virtual directory MUST necessarily be resources.
- Click on Next.
- Web Site
Content Directory: Click on
Browse to select the
$exchange_dir\htdocs\resources directory in the
Directory field.
- Click on
Next.
- Access
Permissions: Accept the default
values in this screen and click on Next.
- Click Finish.
- Configure your new virtual directory
to use basic authentication
- The Internet
Services Manager window
should still be open. In the left pane, expand the Default Web
Site.
- Right-click the your_virtual_directory created in the step 1a, and select
Properties.
- Select the Directory
Security
tab.
- Click Edit in the Anonymous
access and authentication control section.
- Select the checkbox for Basic
authentication and
unselect all other checkboxes.
- When you select basic
authentication, a dialog will pop up warning you that passwords will be
transmitted unencrypted. Click Yes to continue.
- Click Edit next to Select a
default domain.
The domain you should
select here is the domain for which your Exchange Server 2003 is the primary domain
controller. If this is the domain that Microsoft IIS is on, you can click
Use
Default.
- Give users the right to
log on
locally to the
IIS server
In order for users to
access your_virtual_directory using basic
authentication, they must be given the Log On
Locally right for the machine
that has IIS.The easiest way to do this is as follows:
- Go to the machine that has Microsoft
IIS. Click Start, point to Programs, then Administrative
Tools, and then click
Local
Security Policy.
- In the left pane, expand
Local
Policies.
- Under the
expanded node, click User Rights
Assignment.
- In the right pane, double click
Log on
locally.
- Look to see if
the group Users is in the list of assigned
users/groups.
- Make sure the Local Policy
Setting is checked for
Users.
Also make sure the
group corresponds to the domain for your Exchange Server 2003 (you do not need to
worry about this if you only have one domain). If the “Users” group is not in
the list, click Add… and add the “Users”
group from your Exchange Server 2003’s domain.
- You will need to assign user rights
at the domain controller level.
- Click Start, point to Programs, then Administrative
Tools, and then click
Domain
Controller Security Policy.
- Expand Security
Settings, then expand
Local
Policies
- Click User Rights
Assignment. In the
right pane, double click Log on
locally and make sure
the Users group has been added to the
list.
- You must restart the machine for
user rights assignment changes to take effect.
- Test basic authentication for your
new virtual directory
- Open a browser and go
to: http://your_IIS_hostname:port/your_virtual_directory/hello.html
- A basic authentication
dialog should prompt you to authenticate. Enter the credentials for a valid user
account.
- Do not proceed with the installation
if you cannot see the Hello World page. If this happens, review the previous
steps and double check that everything has been configured
correctly.
- Configure the location of files with
the .mmp extension
The ASP pages you
added to the IIS virtual directory in Step 2 use a set of Microsoft APIs called
Collaboration Data Objects (CDO). When CDO is used in an ASP page to logon to an
Exchange 2003 mailbox, a temporary .mmp file is created and
stored in the directory where Windows is installed. Since most users would not
have permissions to that directory, they would not be able to log on to
Microsoft Exchange 2003 via the ASP pages. This previously caused a [Collaboration
Data Objects - [MAPI_E_NOT_FOUND(8004010F)]]error to appear when
invoking the Portlet ASP pages.
To avoid this error,
configure the Windows Messaging Subsystem to store the temporary .mmp file in a different
directory and do following registry configuation:
- Start Registry Editor (regedt32.exe)
on the machine that has IIS.
- Go to the following key:
HKEY_LOCAL_MACHINE/Software/Microsoft/Windows
Messaging Subsystem.
- On the Edit Menu, click Add
Value.
- Enter the
following:
- Value
Name:
ProfileDirectory
- Data
Type:
REG_SZ
- String: The path to the directory you want
the .mmp files to be created in. For example, C:\temp. Make sure everyone has “full
control” permissions for this directory.
6. Test the ASP
page access to the sample Exchange 2003 mailbox
- Open a browser and go
to:
http://your_IIS_hostname:port/your_virtual_directory/test.asp?mailbox=mailbox_alias_for_sample_account&server=your_exchange_server
For example, suppose
IIS is on a machine called “server-iis”, Exchange 2003 is on “server-ex”, and you created a user
called “john.doe” (mailbox alias “john.doe”). Then URL would be:
http://server-iis/your_virtual_directory/test.asp?mailbox=john.doe&server=server-ex
When prompted by the
authentication dialog, enter the credentials for the "john.doe" user account.
You should see the word VALID appear.
- You can run this same test by
invoking inbox.asp instead of test.asp. You should then see the sample
user's inbox.
- Do not
proceed with the installation if you cannot successfully view test.asp and inbox.asp. If this happens, review the previous steps and double check that
everything has been configured correctly.
Passing-on the
Session context from Portal to Microsoft Exchange Server 2003
In order to pass-on the Session context from
Portal to Microsoft Exchange Server 2003, we have 2 options available :
- Routing through Login Server
- Using Microsoft ISAPI Filter
Routing through Login Server
Routing through the Login Server will
allow every access to the Microsoft Exchange Server 2003 is authenticated
and user does not need to login on the Microsoft Exchange Server 2003. User
may be prompted for a login challenge by the Login Server itself incase
the portal session is lost or invalidated. However with Microsoft Internet Explorer 6+ versions the user may receive a dialog box that
prompts for Basic Authentication login challenge. This is due to the Microsoft's
Security Q832894 patch applied, which will not allow the Login Server
to make basic authentication automatically. By default
Oracle Application Server Provider for Microsoft Exchange 2003 runs in this
mode. To avoid this, user may use the ISAPI filter.
Using Microsoft ISAPI Filter
ISAPI filter is a Microsoft's solution
for basic authentication, which takes the tokenID from request and then
uses it to establish a valid user session. This mechanism makes
the authentication smooth and works on all the browsers. ISAPI
filter is to be configured on the Microsoft Exchange Server 2003.
Note: The ISAPI Filter is a solution from Microsoft and we do not guarantee the usage of this filter.
Following are the steps to install ISAPI filter:
Downloading and Installing ISAPI Filter:
- ISAPI filter can be downloaded from
Microsoft Download
Center with location as
http://support.microsoft.com/default.aspx?scid=kb;EN-US;837104
- Browse
to above Microsoft site and download samples.exe
package.
- Extract samples.exe in a temporary directory say your_
temporary_directory.
- Locate
filter DLL file i.e.
837104_IsapiFilter.dll
under your_
temporary_directory\ISAPI
folder.
- Copy the filter 837104_IsapiFilter.dll from your_
temporary_directory\ISAPIto subfolder
underDefault Web Site Content
Directoryc:\Inetpub\scripts.
- Click Start, point to Programs, then Administrative
Tools, and then click
Internet Services
Manager.
- In the left pane of the Internet Information
Services screen, you
will see the name of your computer. Click on it and expand it.
- Navigate to ‘Scripts’ under 'Default Web
Site'.
- Select 837104_IsapiFilter.dll and
then right click to select Properties.
- Select the File
Securitytab.
- Click Edit in the Anonymous access and
authentication control
section.
- Select the checkbox for
Anonymous authentication and unselect all other checkboxes.
Configure the ISAPI filter
- Click Start, point to Programs, then Administrative
Tools, and then click
Internet Services
Manager.
- In the left pane of the Internet Information
Services screen, you
will see the name of your computer. Click on it and expand it.
- Select the Default Web Site
and then right click to
select Properties.
- Select the ISAPI FILTERS
tab.
- Click Add and then browse to
\Inetpub\scripts\ to select the ISAPI filter that
you copied.
- Restart the IIS server.
Updating
provider.xml
At this point, you
should have successfully installed and tested your Microsoft Exchange 2003 ASP
pages. The rest of this installation involves installing and registering the
provider for the Exchange 2003 Portlets.
- Open the given provider.xml file for the Exchange 2003 Portlets. Look
for tag called <pageUrl> tags
and change each of these tag values to point to the URLs of the corresponding
Inbox/Contacts/Calendar asp page on your IIS server. For the Inbox Portlet, the
<pageUrl>
tag should look like this:
<pageUrl>http://your_IIS_hostname:port/your_virtual_directory/inbox.asp</pageUrl>
- If you installed the ASP files on a separate machine from
Microsoft Outlook Web Access (OWA), you must specify the URL used to access OWA.
OWA is the web client for Microsoft Exchange 2003. All Portlet links for creating a
new message, reading a message, etc. open OWA to display the inbox, contacts and
calendar in detail. To specify a URL for OWA, add the URL as a parameter called
"owapath" to the pageUrl (do this only if you installed the ASP files on a
separate machine from OWA). For example:
<pageUrl>http://your_IIS_hostname:port/your_virtual_directory/inbox.asp?owapath=http://your_OWA_hostname:port/exchange</pageUrl>
- If there is a proxy server between your OracleAS HTTP Server and
your Microsoft IIS Server, you will need to add the following proxy tags just below the provider tag :
<provider class="oracle.portal.provider.v2.DefaultProviderDefinition"> ....
<proxyInfo class="oracle.portal.provider.v2.ProxyInformation">
<httpProxyHost>your-proxy-server.com</httpProxyHost>
<httpProxyPort>your-proxy-server-port</httpProxyPort>
</proxyInfo>
....
- If you are making use of the ISAPI filter, then change all the occurance of <useISAPIFilter> tag in the entire provider.xml to have true value. This indicates the provider that each portlet needs to run under the filter mechanism.
<filter
class="oracle.portal.integration.exchange.ExchangeSelectiveRenderingFilter">
<inlineRendering>true</inlineRendering>
<disableInlineRenderingID>1</disableInlineRenderingID>
<useISAPIFilter>true</useISAPIFilter>
</filter>
- Else if
you are making use of Routing through Login Server then all the occurances <useISAPIFilter> tag in the entire provider.xml to have false value
<filter
class="oracle.portal.integration.exchange.ExchangeSelectiveRenderingFilter">
<inlineRendering>true</inlineRendering>
<disableInlineRenderingID>1</disableInlineRenderingID>
<useISAPIFilter>false</useISAPIFilter>
</filter>
- Save and close the provider.xml file.
- You should now be able to test your Exchange 2003 provider by going to the URL:
http://your_oc4j_hostname:port/exchange/providers/exchange
Publishing the Oracle Application Server Provider for Microsoft Exchange 2003
Creating the External Application
- Log on to OracleAS Portal as an
OracleAS Portal Administrator. Go to the Administer
tab of the OracleAS
Portal Builder. In the SSO Server
Administration Portlet,
click Administer
External Applications.
- Click on Add External
Application. In the
External
Application Login,
Authentication Method and
Additional Fields
sections, enter the following:
- Application
Name: Exchange Basic
Authentication
- Login
URL: http://your_IIS_hostname:port/your_virtual_directory/hello.html
- User Name/ID
Field Name: <leave
blank>
- Password
Field Name: <leave
blank>
- Type of
Authentication Used:
Select BASIC
AUTHENTICATION
- Enter the mailbox alias for the user
account and the Exchange Server 2003 name as additional fields given
below:
|
Field
Name |
Field
Value |
Display to
User |
|
server |
your_exchange_server_hostname |
√ |
|
mailbox |
mailbox_alias_for_sample_account |
√ |
- Click OK.
- Click on the link for your
new Exchange 2003 External
application and enter valid user account credentials.
- Check box for "Remember My
Login Information... "
must be selected.
Registering the Oracle Application Server Provider for Microsoft Exchange 2003
After deploying the
OracleAS Provider for Microsoft Exchange 2003 Provider, you must register the provider with OracleAS Portal
in order to add Microsoft Exchange 2003 Portlets to a page.
- Login to OracleAS Portal using an
account that has build privileges. If your home page is not the Build/Administer page, click on the Builder link in the top right corner of the
screen. Click on the Build tab if that is not the active
tab.
- Under the Build tab (on OracleAS Portal Home Page),
click on Register Portlet
Provider within
the portlet called Providers.
- Fill out provider information for
the Microsoft Exchange 2003Provider.
- Name: Exchange
- Display
Name: Exchange
Provider
- Timeout: 100
- Timeout
Message: Exchange
Provider Timed Out
- Implementation
Style:
Web
- Click on the Next button to enter the Web Provider
specific information
- Enter the Web Provider
location
URL: http://your_oc4j_hostname:port/exchange/providers/exchange
- Select the radio button labeled
The user's
identity needs to be mapped to a different name....
- In the External
Application ID field,
select the ID corresponding to the Exchange Basic Authentication
application you created in the previous step.
- Under User/Session
Information section,
specify the login frequency. Login
Frequency: Once Per User
Session.
- Click on the Finish button to complete the
registration
Note: When registering a
new provider with Oracle Portal, only the user who registered the provider has
privileges to see the provider/portlets. If necessary, go to the Folder with the
name of the provider within the Portlet Repository content area and update the
provider privileges as required.
Adding the Microsoft Exchange 2003 Portlets to a
Page
When you add the
portlet to a page, you will view Exchange 2003 mailbox content in the portlet for
mailbox alias and Exchange Server 2003 name you specified while creating the external
application.
Customizing the Portlet
to View Your Mailbox
Click the portlet's Customize link. You
may customize portlet settings at this screen i.e. number of rows per page,
filters, etc. Click OK to see the portlet.
To switch to another Exchange 2003 mailbox, you will have to change the
Mailbox/Server values and the credentials entered for the Exchange 2003 Basic Auth external application or create a
new External Application. You can do this via External Applications portlet.
Trademarks
Oracle and the Oracle logo are
trademarks or registered
trademarks of Oracle Corporation in the United States and other
countries.
All other names are trademarks and/or registered
trademarks of their respective owners.
|