Configure Webcenter 11g with OAM 11g and Webgate - Part1
Autor: Denilson Nascimento | Publicado: 2013-11-19T07:19:00-02:00









Pre-Requiste:

Install
     OAM 11.1.1.7
Install
     OHS 11.1.1.7
Install
     WebGate 11.1.1.7




Setup:&nbsp;

Configure
     Webgate Agent for OHS
Register
     Webgate Agent to OAM





1. Configure Webgate Agent for OHS



&nbsp;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 &lt;Oracle_Home_for_Oracle_HTTP_Server&gt;/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 &nbsp;/u01/oracle/Middleware/Oracle_WT1/instances/instance1/config/OHS/ohs1 -oh &nbsp;/u01/oracle/Middleware/Oracle_OAMWebGate1



&nbsp;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 &nbsp;"/u01/oracle/Middleware/Oracle_WT1/instances/instance1/config/OHS/ohs1/webgate.conf"





2. Register Webgate Agent to OAM

&nbsp; &nbsp;



&nbsp;Setting Up the RREG Tool

&nbsp; &nbsp;cd /u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client

&nbsp; &nbsp;tar -xvzf RREG.ta





Create a file named&nbsp;

/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/input/WebCenterOAM11gRequest.xml&nbsp;



and put the following:



&lt;?xml version="1.0" encoding="UTF-8"?&gt;



&lt;!--

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.

--&gt;

&lt;OAM11GRegRequest&gt;

&nbsp; &nbsp; &lt;serverAddress&gt;http://oam-host.domain.com:7001&lt;/serverAddress&gt;

&nbsp; &nbsp; &lt;hostIdentifier&gt;identifier_portal_webcenter&lt;/hostIdentifier&gt;

&nbsp; &nbsp; &lt;agentName&gt;agent_portal_webcenter&lt;/agentName&gt;

&nbsp; &nbsp; &lt;logOutUrls&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;url&gt;/oamsso/logout.html&lt;/url&gt;

&nbsp; &nbsp; &lt;/logOutUrls&gt;

&nbsp; &nbsp; &lt;protectedResourcesList&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/webcenter/adfAuthentication&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/webcenter/content&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/webcenter/content/.../*&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/integration/worklistapp&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/integration/worklistapp/.../*&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/workflow/sdpmessagingsca-ui-worklist/faces/adf.task-flow&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/workflow/WebCenterWorklistDetail/faces/adf.task-flow&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/workflow/sdpmessagingsca-ui-worklist&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/workflow/sdpmessagingsca-ui-worklist/.../*&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/sdpmessaging/userprefs-ui&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/sdpmessaging/userprefs-ui/.../*&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/rss/rssservlet&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/owc_discussions/login!withRedirect.jspa&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/owc_discussions/login!default.jspa&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/owc_discussions/login.jspa&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/owc_discussions/admin&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/owc_discussions/admin/.../*&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/rest/api/resourceIndex&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/rest/api/spaces&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/rest/api/spaces/.../*&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/rest/api/discussions&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/rest/api/discussions/.../*&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/rest/api/tags&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/rest/api/tags/.../*&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/rest/api/taggeditems&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/rest/api/taggeditems/.../*&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/rest/api/activities&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/rest/api/activities/.../*&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/rest/api/activitygraph&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/rest/api/activitygraph/.../*&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/rest/api/feedback&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/rest/api/feedback/.../*&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/rest/api/people&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/rest/api/people/.../*&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/rest/api/messageBoards&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/rest/api/messageBoards/.../*&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/rest/api/searchresults&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/rest/api/searchresults/.../*&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/activitygraph-engines&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/activitygraph-engines/.../*&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/wcps/api&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/wcps/api/.../*&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/cs/idcplg&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/cs/idcplg/.../*&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/cs/groups&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/cs/groups/.../*&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/adfAuthentication&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/pageletadmin&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/pageletadmin/.../*&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/authenticateWithApplicationServer&lt;/resource&gt;

&nbsp; &nbsp; &lt;/protectedResourcesList&gt;

&nbsp; &nbsp; &lt;publicResourcesList&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/webcenter&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/webcenter/.../*&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/webcenterhelp&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/webcenterhelp/.../*&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/owc_discussions&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/owc_discussions/.../*&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/rss&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/rss/.../*&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/workflow&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/workflow/.../*&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/integration/services&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/integration/services/.../*&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/soa-infra&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/soa-infra/.../*&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/rest/api/cmis/.../*&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/cs&lt;/resource&gt;

&nbsp; &nbsp; &nbsp; &nbsp; &lt;resource&gt;/cs/.../*&lt;/resource&gt;

&nbsp; &nbsp; &lt;/publicResourcesList&gt;

&lt;/OAM11GRegRequest&gt;





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 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; INFO: Passwords matched and accepted. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Do you want to import an URIs file?(y/n): &nbsp; &nbsp;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

&nbsp; /u01/oracle/Middleware/Oracle_WT1/instances/instance1/bin/opmnctl restartproc ias-component=ohs1