README revision 4fe4e4f798a84a46e567f64ceadd3648eb0582d4
9d3936fff3d8207c73700cc4ae6c2905f76b1cf9Chris Morgan DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
9d3936fff3d8207c73700cc4ae6c2905f76b1cf9Chris Morgan Copyright (c) 2007 Sun Microsystems Inc. All Rights Reserved
9d3936fff3d8207c73700cc4ae6c2905f76b1cf9Chris Morgan The contents of this file are subject to the terms
9d3936fff3d8207c73700cc4ae6c2905f76b1cf9Chris Morgan of the Common Development and Distribution License
9d3936fff3d8207c73700cc4ae6c2905f76b1cf9Chris Morgan (the License). You may not use this file except in
449159c7cbe099d7020d3e7713f6e28bf81b6bf1JazzyNico compliance with the License.
9d3936fff3d8207c73700cc4ae6c2905f76b1cf9Chris Morgan You can obtain a copy of the License at
9d3936fff3d8207c73700cc4ae6c2905f76b1cf9Chris Morgan https://opensso.dev.java.net/public/CDDLv1.0.html or
449159c7cbe099d7020d3e7713f6e28bf81b6bf1JazzyNico See the License for the specific language governing
9d3936fff3d8207c73700cc4ae6c2905f76b1cf9Chris Morgan permission and limitations under the License.
9d3936fff3d8207c73700cc4ae6c2905f76b1cf9Chris Morgan When distributing Covered Code, include this CDDL
449159c7cbe099d7020d3e7713f6e28bf81b6bf1JazzyNico Header Notice in each file and include the License file
9d3936fff3d8207c73700cc4ae6c2905f76b1cf9Chris Morgan If applicable, add the following below the CDDL Header,
9d3936fff3d8207c73700cc4ae6c2905f76b1cf9Chris Morgan with the fields enclosed by brackets [] replaced by
449159c7cbe099d7020d3e7713f6e28bf81b6bf1JazzyNico your own identifying information:
9d3936fff3d8207c73700cc4ae6c2905f76b1cf9Chris Morgan "Portions Copyrighted [year] [name of copyright owner]"
9d3936fff3d8207c73700cc4ae6c2905f76b1cf9Chris Morgan $Id: README,v 1.2 2009/05/12 05:38:47 kevinserwin Exp $
9d3936fff3d8207c73700cc4ae6c2905f76b1cf9Chris MorganEmbedded OpenSSO sample
9d3936fff3d8207c73700cc4ae6c2905f76b1cf9Chris MorganThis directory contains the sample code for Embedded OpenSSO.
9d3936fff3d8207c73700cc4ae6c2905f76b1cf9Chris MorganThe contents of opensso.war are included, as well as Embedded OpenSSO specific
9d3936fff3d8207c73700cc4ae6c2905f76b1cf9Chris MorganContents of this directory:
449159c7cbe099d7020d3e7713f6e28bf81b6bf1JazzyNico <> (root directory where opensso.zip is extracted)
9d3936fff3d8207c73700cc4ae6c2905f76b1cf9Chris Morgan |- README (this README file)
449159c7cbe099d7020d3e7713f6e28bf81b6bf1JazzyNico |- build.sh (script to build the Hello sample)
9d3936fff3d8207c73700cc4ae6c2905f76b1cf9Chris Morgan |- run.sh (script to execute the Hello sample)
449159c7cbe099d7020d3e7713f6e28bf81b6bf1JazzyNico |- login.jsp (login script for deployed version of sample)
9d3936fff3d8207c73700cc4ae6c2905f76b1cf9Chris Morgan |- config (contents from opensso.war)
9d3936fff3d8207c73700cc4ae6c2905f76b1cf9Chris Morgan |- source (sample source code directory)
9d3936fff3d8207c73700cc4ae6c2905f76b1cf9Chris Morgan |- Hello.java (sample code for Embedded OpenSSO)
9d3936fff3d8207c73700cc4ae6c2905f76b1cf9Chris Morgan |- WEB-INF (contents from opensso.war)
9d3936fff3d8207c73700cc4ae6c2905f76b1cf9Chris Morgan |- classes (contains opensso.war classes plus Hello.class)
9d3936fff3d8207c73700cc4ae6c2905f76b1cf9Chris Morgan |- classes/configparam.properties (contains configuration parameters
d380b9443b463cec3bc1bdb313452647858fd88btheAdib for embedded opensso.
9d3936fff3d8207c73700cc4ae6c2905f76b1cf9Chris Morgan NOTE: This file must be modified to
9d3936fff3d8207c73700cc4ae6c2905f76b1cf9Chris Morgan use the deployed version)
9d3936fff3d8207c73700cc4ae6c2905f76b1cf9Chris MorganSteps to run Embedded OpenSSO:
9d3936fff3d8207c73700cc4ae6c2905f76b1cf9Chris Morgan1. Extract the opensso-embedded.war file:
9d3936fff3d8207c73700cc4ae6c2905f76b1cf9Chris Morgan % jar xvf <war-file-location>/opensso-embedded.war
9d3936fff3d8207c73700cc4ae6c2905f76b1cf9Chris Morgan2. Fix permissions on the run.sh script
9d3936fff3d8207c73700cc4ae6c2905f76b1cf9Chris Morgan3. Execute the run.sh script:
9d3936fff3d8207c73700cc4ae6c2905f76b1cf9Chris Morgan4. Modify source/Hello.java and then rebuild to test your modifications.
d380b9443b463cec3bc1bdb313452647858fd88btheAdib1. Extract the opensso-embedded.war file:
9d3936fff3d8207c73700cc4ae6c2905f76b1cf9Chris Morgan % jar xvf <war-file-location>/opensso-embedded.war
9d3936fff3d8207c73700cc4ae6c2905f76b1cf9Chris Morgan2. Modify the configuration parameters for your environment:
9d3936fff3d8207c73700cc4ae6c2905f76b1cf9Chris Morgan locale=en_US
9d3936fff3d8207c73700cc4ae6c2905f76b1cf9Chris Morgan PLATFORM_LOCALE=en_US
9d3936fff3d8207c73700cc4ae6c2905f76b1cf9Chris Morgan AM_ENC_KEY=abcdefghijklm
9d3936fff3d8207c73700cc4ae6c2905f76b1cf9Chris Morgan ADMIN_PWD=11111111
9d3936fff3d8207c73700cc4ae6c2905f76b1cf9Chris Morgan ADMIN_CONFIRM_PWD=11111111
9d3936fff3d8207c73700cc4ae6c2905f76b1cf9Chris Morgan AMLDAPUSERPASSWD=00000000
9d3936fff3d8207c73700cc4ae6c2905f76b1cf9Chris Morgan AMLDAPUSERPASSWD_CONFIRM=00000000
9d3936fff3d8207c73700cc4ae6c2905f76b1cf9Chris Morgan COOKIE_DOMAIN=
9d3936fff3d8207c73700cc4ae6c2905f76b1cf9Chris Morgan DATA_STORE=embedded
9d3936fff3d8207c73700cc4ae6c2905f76b1cf9Chris Morgan DIRECTORY_SSL=SIMPLE
9d3936fff3d8207c73700cc4ae6c2905f76b1cf9Chris Morgan DIRECTORY_SERVER=localhost
9d3936fff3d8207c73700cc4ae6c2905f76b1cf9Chris Morgan DIRECTORY_PORT=50389
9d3936fff3d8207c73700cc4ae6c2905f76b1cf9Chris Morgan ROOT_SUFFIX=dc=opensso,dc=java,dc=net
9d3936fff3d8207c73700cc4ae6c2905f76b1cf9Chris Morgan DS_DIRMGRDN=cn=Directory Manager
9d3936fff3d8207c73700cc4ae6c2905f76b1cf9Chris Morgan DS_DIRMGRPASSWD=11111111
9d3936fff3d8207c73700cc4ae6c2905f76b1cf9Chris Morgan3. Jar the modified contents:
aea177a59b3bfda7bc8f6301cfd0c47326aa57c9JazzyNico4. Deploy the war file on your favorite container
9d3936fff3d8207c73700cc4ae6c2905f76b1cf9Chris Morgan5. Goto the Embedded OpenSSO URL in your browser: