Wednesday, June 5, 2013

OIM 11g R1: Changing OIM Session Timeout

Version: Oracle Identity Manager 11g R1
Description: This guide shows you how to configure the session timeout for the OIM web interfaces. When a user stays idle in the OIM console for a certain amount of time, one of two alert dialog boxes may appear. The first alert dialog box is a two-minute warning before the session times out. The second alert dialog box is a page expiration message indicating session has expired.

Step 1:
Navigate to "<idm_home>/server/apps/oim.ear" directory. The oim.ear here is an exploded directory, not an actual ear file. You may want to backup the entire oim.ear directory before proceeding.
cd /home/oracle/Oracle/Middleware/Oracle_IDM1/server/apps
cp -r oim.ear/ oim.ear.bak #Backup entire oim.ear directory
cd oim.ear

Step 2:
Within the oim.ear directory, modify the web.xml in the following directories:
        - admin.war/WEB-INF
        - iam-consoles-faces.war/WEB-INF
        - xlWebApp.war/WEB-INF

Step 3:
For the three web.xml mentioned above, search for the session-timeout tag and modify the value to whatever you like. The unit is in minutes.

E.g. The session will timeout if a user is idle for 35 minutes.
<session-config>
        <session-timeout>35</session-timeout>
</session-config>

Step 4:
Login to the WebLogic Administration Console (localhost:7001/console) and shutdown the OIM managed server if it is running.
Click Deployments under the Domain Structure box (on top-left page).
Select oim (11.1.1.3.0) and delete it. (Note: Make sure to remember your configuration settings of your oim application.)
Install the oim application.
1. Path: /home/oracle/Oracle/Middleware/Oracle_IDM1/server/apps/oim.ear
2. Select "Install this deployment as an application".
3. Deploy on the OIM managed server (E.g. oim_server1).
4. Name: oim, Security Model: DD Only, Source accessibility: "I will make the deployment accessible from the following location"
5. Select "Yes, take me to the deployment's configuration screen".
6. Modify the Deployment Order to the original value from previous deployment and save.















Step 5:
Start the OIM managed server and validate your changes. Note: If there contain errors in your web.xml,  you will not be able to access the OIM web interface.

No comments:

Post a Comment