README revision 9fa57a4f31580310b62bb2f08906e6b73d510817
b1c2d1f8735dc44a6c1a80f77447293503d5a054Satyen Desai DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
b1c2d1f8735dc44a6c1a80f77447293503d5a054Satyen Desai Copyright (c) 2007 Sun Microsystems Inc. All Rights Reserved
b1c2d1f8735dc44a6c1a80f77447293503d5a054Satyen Desai The contents of this file are subject to the terms
b1c2d1f8735dc44a6c1a80f77447293503d5a054Satyen Desai of the Common Development and Distribution License
b1c2d1f8735dc44a6c1a80f77447293503d5a054Satyen Desai (the License). You may not use this file except in
b1c2d1f8735dc44a6c1a80f77447293503d5a054Satyen Desai compliance with the License.
b1c2d1f8735dc44a6c1a80f77447293503d5a054Satyen Desai You can obtain a copy of the License at
b1c2d1f8735dc44a6c1a80f77447293503d5a054Satyen Desai https://opensso.dev.java.net/public/CDDLv1.0.html or
b1c2d1f8735dc44a6c1a80f77447293503d5a054Satyen Desai See the License for the specific language governing
b1c2d1f8735dc44a6c1a80f77447293503d5a054Satyen Desai permission and limitations under the License.
b1c2d1f8735dc44a6c1a80f77447293503d5a054Satyen Desai When distributing Covered Code, include this CDDL
b1c2d1f8735dc44a6c1a80f77447293503d5a054Satyen Desai Header Notice in each file and include the License file
b1c2d1f8735dc44a6c1a80f77447293503d5a054Satyen Desai If applicable, add the following below the CDDL Header,
b1c2d1f8735dc44a6c1a80f77447293503d5a054Satyen Desai with the fields enclosed by brackets [] replaced by
b1c2d1f8735dc44a6c1a80f77447293503d5a054Satyen Desai your own identifying information:
b1c2d1f8735dc44a6c1a80f77447293503d5a054Satyen Desai "Portions Copyrighted [year] [name of copyright owner]"
b1c2d1f8735dc44a6c1a80f77447293503d5a054Satyen Desai $Id: README,v 1.2 2009/05/12 05:38:47 kevinserwin Exp $
b1c2d1f8735dc44a6c1a80f77447293503d5a054Satyen DesaiEmbedded OpenSSO sample
b1c2d1f8735dc44a6c1a80f77447293503d5a054Satyen DesaiThis directory contains the sample code for Embedded OpenSSO.
b1c2d1f8735dc44a6c1a80f77447293503d5a054Satyen DesaiThe contents of opensso.war are included, as well as Embedded OpenSSO specific
b1c2d1f8735dc44a6c1a80f77447293503d5a054Satyen DesaiContents of this directory:
b1c2d1f8735dc44a6c1a80f77447293503d5a054Satyen Desai <> (root directory where opensso.zip is extracted)
b1c2d1f8735dc44a6c1a80f77447293503d5a054Satyen Desai |- README (this README file)
b1c2d1f8735dc44a6c1a80f77447293503d5a054Satyen Desai |- build.sh (script to build the Hello sample)
b1c2d1f8735dc44a6c1a80f77447293503d5a054Satyen Desai |- run.sh (script to execute the Hello sample)
b1c2d1f8735dc44a6c1a80f77447293503d5a054Satyen Desai |- login.jsp (login script for deployed version of sample)
b1c2d1f8735dc44a6c1a80f77447293503d5a054Satyen Desai |- config (contents from opensso.war)
b1c2d1f8735dc44a6c1a80f77447293503d5a054Satyen Desai |- source (sample source code directory)
b1c2d1f8735dc44a6c1a80f77447293503d5a054Satyen Desai |- Hello.java (sample code for Embedded OpenSSO)
b1c2d1f8735dc44a6c1a80f77447293503d5a054Satyen Desai |- WEB-INF (contents from opensso.war)
b1c2d1f8735dc44a6c1a80f77447293503d5a054Satyen Desai |- classes (contains opensso.war classes plus Hello.class)
b1c2d1f8735dc44a6c1a80f77447293503d5a054Satyen Desai |- classes/configparam.properties (contains configuration parameters
b1c2d1f8735dc44a6c1a80f77447293503d5a054Satyen Desai for embedded opensso.
b1c2d1f8735dc44a6c1a80f77447293503d5a054Satyen Desai NOTE: This file must be modified to
b1c2d1f8735dc44a6c1a80f77447293503d5a054Satyen Desai use the deployed version)
b1c2d1f8735dc44a6c1a80f77447293503d5a054Satyen DesaiSteps to run Embedded OpenSSO:
b1c2d1f8735dc44a6c1a80f77447293503d5a054Satyen Desai1. Extract the opensso-embedded.war file:
b1c2d1f8735dc44a6c1a80f77447293503d5a054Satyen Desai % jar xvf <war-file-location>/opensso-embedded.war
b1c2d1f8735dc44a6c1a80f77447293503d5a054Satyen Desai2. Fix permissions on the run.sh script
b1c2d1f8735dc44a6c1a80f77447293503d5a054Satyen Desai3. Execute the run.sh script:
b1c2d1f8735dc44a6c1a80f77447293503d5a054Satyen Desai4. Modify source/Hello.java and then rebuild to test your modifications.
b1c2d1f8735dc44a6c1a80f77447293503d5a054Satyen Desai1. Extract the opensso-embedded.war file:
b1c2d1f8735dc44a6c1a80f77447293503d5a054Satyen Desai % jar xvf <war-file-location>/opensso-embedded.war
b1c2d1f8735dc44a6c1a80f77447293503d5a054Satyen Desai2. Modify the configuration parameters for your environment:
b1c2d1f8735dc44a6c1a80f77447293503d5a054Satyen Desai locale=en_US
b1c2d1f8735dc44a6c1a80f77447293503d5a054Satyen Desai PLATFORM_LOCALE=en_US
b1c2d1f8735dc44a6c1a80f77447293503d5a054Satyen Desai AM_ENC_KEY=abcdefghijklm
b1c2d1f8735dc44a6c1a80f77447293503d5a054Satyen Desai ADMIN_PWD=11111111
b1c2d1f8735dc44a6c1a80f77447293503d5a054Satyen Desai ADMIN_CONFIRM_PWD=11111111
b1c2d1f8735dc44a6c1a80f77447293503d5a054Satyen Desai AMLDAPUSERPASSWD=00000000
b1c2d1f8735dc44a6c1a80f77447293503d5a054Satyen Desai AMLDAPUSERPASSWD_CONFIRM=00000000
b1c2d1f8735dc44a6c1a80f77447293503d5a054Satyen Desai COOKIE_DOMAIN=
ROOT_SUFFIX=dc=openam,dc=forgerock.dc=org
% jar cvf hello.war *