README revision 9fa57a4f31580310b62bb2f08906e6b73d510817
0N/A<!--
0N/A DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
0N/A
0N/A Copyright (c) 2007 Sun Microsystems Inc. All Rights Reserved
0N/A
0N/A The contents of this file are subject to the terms
0N/A of the Common Development and Distribution License
0N/A (the License). You may not use this file except in
0N/A compliance with the License.
0N/A
0N/A You can obtain a copy of the License at
0N/A https://opensso.dev.java.net/public/CDDLv1.0.html or
0N/A opensso/legal/CDDLv1.0.txt
0N/A See the License for the specific language governing
0N/A permission and limitations under the License.
0N/A
0N/A When distributing Covered Code, include this CDDL
0N/A Header Notice in each file and include the License file
0N/A at opensso/legal/CDDLv1.0.txt.
0N/A If applicable, add the following below the CDDL Header,
0N/A with the fields enclosed by brackets [] replaced by
0N/A your own identifying information:
0N/A "Portions Copyrighted [year] [name of copyright owner]"
0N/A
0N/A $Id: README,v 1.2 2009/05/12 05:38:47 kevinserwin Exp $
0N/A
0N/A-->
0N/A
0N/AEmbedded OpenSSO sample
0N/A
0N/AThis directory contains the sample code for Embedded OpenSSO.
0N/AThe contents of opensso.war are included, as well as Embedded OpenSSO specific
0N/Aclasses.
0N/A
0N/AContents of this directory:
0N/A <> (root directory where opensso.zip is extracted)
0N/A |- README (this README file)
0N/A |- build.sh (script to build the Hello sample)
0N/A |- run.sh (script to execute the Hello sample)
0N/A |- login.jsp (login script for deployed version of sample)
0N/A |- config (contents from opensso.war)
0N/A |- source (sample source code directory)
0N/A |- Hello.java (sample code for Embedded OpenSSO)
0N/A |- WEB-INF (contents from opensso.war)
0N/A |- classes (contains opensso.war classes plus Hello.class)
0N/A |- classes/configparam.properties (contains configuration parameters
0N/A for embedded opensso.
0N/A NOTE: This file must be modified to
0N/A use the deployed version)
0N/A
0N/ASteps to run Embedded OpenSSO:
0N/A
0N/AStandalone
0N/A==========
0N/A
0N/A1. Extract the opensso-embedded.war file:
0N/A % mkdir <staging area>
0N/A % cd <staging area>
0N/A % jar xvf <war-file-location>/opensso-embedded.war
0N/A
0N/A2. Fix permissions on the run.sh script
0N/A % chmod 755 run.sh
0N/A
0N/A3. Execute the run.sh script:
0N/A % run.sh
0N/A
0N/A4. Modify source/Hello.java and then rebuild to test your modifications.
0N/A % build.sh
0N/A % run.sh
0N/A
0N/ADeployed
0N/A==========
0N/A
0N/A1. Extract the opensso-embedded.war file:
0N/A % mkdir <staging area>
0N/A % cd <staging area>
0N/A % jar xvf <war-file-location>/opensso-embedded.war
0N/A
0N/A2. Modify the configuration parameters for your environment:
0N/A % vi WEB-INF/classes/configparam.properties
0N/A
0N/A SERVER_URL=http://<your host>:<deployed port>
0N/A locale=en_US
0N/A PLATFORM_LOCALE=en_US
0N/A AM_ENC_KEY=abcdefghijklm
0N/A ADMIN_PWD=11111111
0N/A ADMIN_CONFIRM_PWD=11111111
0N/A AMLDAPUSERPASSWD=00000000
0N/A AMLDAPUSERPASSWD_CONFIRM=00000000
0N/A COOKIE_DOMAIN=
0N/A DATA_STORE=embedded
0N/A DIRECTORY_SSL=SIMPLE
0N/A DIRECTORY_SERVER=localhost
0N/A DIRECTORY_PORT=50389
0N/A ROOT_SUFFIX=dc=openam,dc=forgerock.dc=org
0N/A DS_DIRMGRDN=cn=Directory Manager
0N/A DS_DIRMGRPASSWD=11111111
0N/A
0N/A3. Jar the modified contents:
0N/A % jar cvf hello.war *
0N/A
0N/A4. Deploy the war file on your favorite container
0N/A
0N/A5. Goto the Embedded OpenSSO URL in your browser:
0N/A http://myhost:8080/hello/login.jsp
0N/A
0N/A
0N/A
0N/A
0N/A