Registering Oracle Internet Directory with the WebLogic Server Domain

7-8 Oracle Fusion Middleware Enterprise Deployment Guide for Oracle Identity Management ldapbind -h oidhost2.mycompany.com -p 389 -D cn=orcladmin -q ldapbind -h oidhost2.mycompany.com -p 636 -D cn=orcladmin -q -U 1

7.4 Post-Configuration Steps

Follow the steps in this section to complete the configuration of the Oracle Internet Directory instances. This section contains the following topics: ■ Section 7.4.1, Registering Oracle Internet Directory with the WebLogic Server Domain ■ Section 7.4.2, Considering Oracle Internet Directory Password Policies

7.4.1 Registering Oracle Internet Directory with the WebLogic Server Domain

All the Oracle Fusion Middleware components deployed in this enterprise deployment are managed by using Oracle Enterprise Manager Fusion Middleware Control. To manage the Oracle Internet Directory component with this tool, you must register the component and the Oracle Fusion Middleware instance that contains it with an Oracle WebLogic Server domain. A component can be registered either at install time or post-install. A previously un-registered component can be registered with a WebLogic domain by using the opmnctl registerinstance command. To register the Oracle Internet Directory instances installed on OIDHOST1 and OIDHOST2, follow these steps:

1. Set the ORACLE_HOME variable. For example, on OIDHOST1 and OIDHOST2, issue

this command: export ORACLE_HOME=IDM_ORACLE_HOME

2. Set the ORACLE_INSTANCE variable. For example:

On OIDHOST1, issue this command: export ORACLE_INSTANCE=u01apporacleadminoid_inst1 On OIDHOST2, issue this command: export ORACLE_INSTANCE=u01apporacleadminoid_inst2

3. Execute the opmnctl registerinstance command on both OIDHOST1 and

OIDHOST2: ORACLE_INSTANCE binopmnctl registerinstance -adminHost WLSHostName -adminPort WLSPort -adminUsername adminUserName Note: Ensure that the following environment variables are set before using ldapbind: ■ ORACLE_HOME ■ ORACLE_INSTANCE ■ PATH - The following directory locations should be in your PATH: ORACLE_HOME bin ORACLE_HOME ldapbin ORACLE_HOME ldapadmin Extending the Domain with Oracle Internet Directory 7-9 For example, on OIDHOST1 and OIDHOST2: ORACLE_INSTANCE binopmnctl registerinstance -adminHost ADMINVHN -adminPort 7001 -adminUsername weblogic The command requires login to WebLogic Administration Server idmhost1.mycompany.com Username: weblogic Password: 4. Update the Enterprise Manager Repository URL using the emctl utility with the switchOMS flag. The emctl utility is located under the ORACLE_ INSTANCE EMAGENTEMAGENTbin directory. Syntax: .emctl switchOMS ReposURL. For Example: .emctl switchOMS http:ADMINVHN:7001emupload Output: .emctl switchOMS http:ADMINVHN.mycompany.com:7001emupload Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0. Copyright c 1996, 2009 Oracle Corporation. All rights reserved. SwitchOMS succeeded. 5. Wait a few minutes for the agents to reload. Then validate if the agents on OIDHOST1 and OIDHOST2 are configured properly to monitor their respective targets. Follow these steps to complete this task: ■ Use a web browser to access Oracle Enterprise Manager Fusion Middleware Control at http:ADMINVHN.mycompany.com:7001em. Log in as the weblogic user. ■ From the Domain Home Page navigate to the Agent-Monitored Targets page using the menu under Farm - Agent-Monitored Targets. ■ Validate that the host name in Agent URL under the Agent column matches the host name under the Host column. In case of a mismatch, follow these steps to correct the issue: – Click the configure link to go to the Configure Target Page. – On the Configure Target Page, click Change Agent and choose the correct agent for the host. ■ Update the WebLogic monitoring user name and the WebLogic monitoring password. Note: For additional details on registering Oracle Internet Directory components with a WebLogic Server domain, see the Registering an Oracle Instance or Component with the WebLogic Server section in Oracle Fusion Middleware Administrators Guide for Oracle Internet Directory. 7-10 Oracle Fusion Middleware Enterprise Deployment Guide for Oracle Identity Management – Update the WebLogic monitoring user name and the WebLogic monitoring password. Enter weblogic as the WebLogic monitoring user name and the password for the weblogic user as the WebLogic monitoring password. – Click OK to save your changes.

7.4.2 Considering Oracle Internet Directory Password Policies