Pre-Requiste:
- Install
OAM 11.1.1.7
- Install
OHS 11.1.1.7
- Install
WebGate 11.1.1.7
Setup:
- Configure
Webgate Agent for OHS
- Register
Webgate Agent to OAM
1. Configure Webgate Agent for OHS
Execute the following command to copy the required bits of agent from the Webgate_Home directory to the Webgate Instance location
/u01/oracle/Middleware/Oracle_OAMWebGate1/webgate/ohs/tools/deployWebGate/deployWebGateInstance.sh -w /u01/oracle/Middleware/Oracle_WT1/instances/instance1/config/OHS/ohs1 -oh /u01/oracle/Middleware/Oracle_OAMWebGate1
Ensure that the LD_LIBRARY_PATH variable contains <Oracle_Home_for_Oracle_HTTP_Server>/lib:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/u01/oracle/Middleware/Oracle_WT1/lib
Execute the following command to copy the apache_webgate.template from the Webgate_Home directory to the Webgate Instance location:
/u01/oracle/Middleware/Oracle_OAMWebGate1/webgate/ohs/tools/setup/InstallTools/EditHttpConf -w /u01/oracle/Middleware/Oracle_WT1/instances/instance1/config/OHS/ohs1 -oh /u01/oracle/Middleware/Oracle_OAMWebGate1
After that, the following line will be added to the httpd.conf
/u01/oracle/Middleware/Oracle_WT1/instances/instance1/config/OHS/ohs1/httpd.conf
include "/u01/oracle/Middleware/Oracle_WT1/instances/instance1/config/OHS/ohs1/webgate.conf"
2. Register Webgate Agent to OAM
Setting Up the RREG Tool
cd /u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client
tar -xvzf RREG.ta
Create a file named
/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/input/WebCenterOAM11gRequest.xml
and put the following:
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
NAME: OAM11GRequest_short.xml - Template for OAM 11G Agent Registration Request file
(Shorter version - Only mandatory values - Default values will be used for all other fields)
DESCRIPTION: Modify with specific values and pass file as input to the tool.
-->
<OAM11GRegRequest>
<serverAddress>http://oam-host.domain.com:7001</serverAddress>
<hostIdentifier>identifier_portal_webcenter</hostIdentifier>
<agentName>agent_portal_webcenter</agentName>
<logOutUrls>
<url>/oamsso/logout.html</url>
</logOutUrls>
<protectedResourcesList>
<resource>/webcenter/adfAuthentication</resource>
<resource>/webcenter/content</resource>
<resource>/webcenter/content/.../*</resource>
<resource>/integration/worklistapp</resource>
<resource>/integration/worklistapp/.../*</resource>
<resource>/workflow/sdpmessagingsca-ui-worklist/faces/adf.task-flow</resource>
<resource>/workflow/WebCenterWorklistDetail/faces/adf.task-flow</resource>
<resource>/workflow/sdpmessagingsca-ui-worklist</resource>
<resource>/workflow/sdpmessagingsca-ui-worklist/.../*</resource>
<resource>/sdpmessaging/userprefs-ui</resource>
<resource>/sdpmessaging/userprefs-ui/.../*</resource>
<resource>/rss/rssservlet</resource>
<resource>/owc_discussions/login!withRedirect.jspa</resource>
<resource>/owc_discussions/login!default.jspa</resource>
<resource>/owc_discussions/login.jspa</resource>
<resource>/owc_discussions/admin</resource>
<resource>/owc_discussions/admin/.../*</resource>
<resource>/rest/api/resourceIndex</resource>
<resource>/rest/api/spaces</resource>
<resource>/rest/api/spaces/.../*</resource>
<resource>/rest/api/discussions</resource>
<resource>/rest/api/discussions/.../*</resource>
<resource>/rest/api/tags</resource>
<resource>/rest/api/tags/.../*</resource>
<resource>/rest/api/taggeditems</resource>
<resource>/rest/api/taggeditems/.../*</resource>
<resource>/rest/api/activities</resource>
<resource>/rest/api/activities/.../*</resource>
<resource>/rest/api/activitygraph</resource>
<resource>/rest/api/activitygraph/.../*</resource>
<resource>/rest/api/feedback</resource>
<resource>/rest/api/feedback/.../*</resource>
<resource>/rest/api/people</resource>
<resource>/rest/api/people/.../*</resource>
<resource>/rest/api/messageBoards</resource>
<resource>/rest/api/messageBoards/.../*</resource>
<resource>/rest/api/searchresults</resource>
<resource>/rest/api/searchresults/.../*</resource>
<resource>/activitygraph-engines</resource>
<resource>/activitygraph-engines/.../*</resource>
<resource>/wcps/api</resource>
<resource>/wcps/api/.../*</resource>
<resource>/cs/idcplg</resource>
<resource>/cs/idcplg/.../*</resource>
<resource>/cs/groups</resource>
<resource>/cs/groups/.../*</resource>
<resource>/adfAuthentication</resource>
<resource>/pageletadmin</resource>
<resource>/pageletadmin/.../*</resource>
<resource>/authenticateWithApplicationServer</resource>
</protectedResourcesList>
<publicResourcesList>
<resource>/webcenter</resource>
<resource>/webcenter/.../*</resource>
<resource>/webcenterhelp</resource>
<resource>/webcenterhelp/.../*</resource>
<resource>/owc_discussions</resource>
<resource>/owc_discussions/.../*</resource>
<resource>/rss</resource>
<resource>/rss/.../*</resource>
<resource>/workflow</resource>
<resource>/workflow/.../*</resource>
<resource>/integration/services</resource>
<resource>/integration/services/.../*</resource>
<resource>/soa-infra</resource>
<resource>/soa-infra/.../*</resource>
<resource>/rest/api/cmis/.../*</resource>
<resource>/cs</resource>
<resource>/cs/.../*</resource>
</publicResourcesList>
</OAM11GRegRequest>
Run the RREG
export OAM_REG_HOME=/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg
when /u01/oracle/Middleware/Oracle_IDM2 is a Oracle Access Manager Home.
/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/bin/oamreg.sh inband /u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/input/WebCenterOAM11gRequest.xml
Execution Sumary:
JAVA_HOME=/u01/oracle/jrockit
CLASSPATH=/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/lib/rreg.jar:/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/lib:/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/lib/RequestResponse.jar:/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/lib/commons-codec-1.3.jar:/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/lib/commons-httpclient-3.1.jar:/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/lib/commons-logging-1.1.1.jar:/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/lib/ojmisc.jar:/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/lib/jps-api.jar:/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/lib/jps-internal.jar:/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/lib/jps-common.jar:/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/lib/identitystore.jar:/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/lib/identityutils.jar:/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/lib/ldapjclnt11.jar:/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/lib/dms.jar:/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/lib/fmw_audit.jar:/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/lib/ojdl.jar:/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/lib/oraclepki.jar:/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/lib/osdt_cert.jar:/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/lib/osdt_core.jar:/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/lib/osdt_jce.jar:/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/lib/osdt_saml.jar:/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/lib/osdt_xmlsec.jar:/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/lib/xmlparserv2.jar:/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/lib/jps-unsupported-api.jar:/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/lib/nap-api.jar:/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/lib/utilities.jar:.
OAM_REG_HOME=/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg
------------------------------------------------
Welcome to OAM Remote Registration Tool!
Parameters passed to the registration tool are:
Mode: inband
Filename: /u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/input/WebCenterOAM11gRequest.xml
Enter admin username:weblogic
Nov 19, 2013 7:55:16 AM oracle.security.am.engines.rreg.client.handlers.request.OAM11GRequestHandler getWebgatePassword INFO: Passwords matched and accepted. Do you want to import an URIs file?(y/n): n
Copy the generated files and artifacts (cwallet.sso and ObAccessClient.xml) to the Webgate Instance Location
scp /u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/output/agent_portal_webcenter/* oracle@192.168.246.147:/u01/oracle/Middleware/Oracle_WT1/instances/instance1/config/OHS/ohs1/webgate/config/
Restart OHS
/u01/oracle/Middleware/Oracle_WT1/instances/instance1/bin/opmnctl restartproc ias-component=ohs1
Comentários
Postar um comentário