[jboss-svn-commits] JBL Code SVN: r21263 - in labs/jbossesb/workspace/dbevenius/security/product: samples/quickstarts/opensso and 1 other directory.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Mon Jul 28 15:26:59 EDT 2008


Author: beve
Date: 2008-07-28 15:26:58 -0400 (Mon, 28 Jul 2008)
New Revision: 21263

Added:
   labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/jaas.login
Modified:
   labs/jbossesb/workspace/dbevenius/security/product/rosetta/src/org/jboss/internal/soa/esb/services/security/jaas/OpenSSOLoginModule.java
   labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/build.xml
   labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/readme.txt
Log:
Minor fixes. Quickstart should work by following the quickstart.


Modified: labs/jbossesb/workspace/dbevenius/security/product/rosetta/src/org/jboss/internal/soa/esb/services/security/jaas/OpenSSOLoginModule.java
===================================================================
--- labs/jbossesb/workspace/dbevenius/security/product/rosetta/src/org/jboss/internal/soa/esb/services/security/jaas/OpenSSOLoginModule.java	2008-07-28 18:14:23 UTC (rev 21262)
+++ labs/jbossesb/workspace/dbevenius/security/product/rosetta/src/org/jboss/internal/soa/esb/services/security/jaas/OpenSSOLoginModule.java	2008-07-28 19:26:58 UTC (rev 21263)
@@ -238,15 +238,6 @@
 	{
 		if ( amProperties != null )
 		{
-    		URL loginUrl = ClassUtil.getResource(amProperties, getClass());
-    		if ( loginUrl == null )
-    		{
-            	final String invalidPropertyMsg = 
-            	"The value for property [" + Environment.SECURITY_SERVICE_CONFIG_URL +
-            	"] must be a valid URL. This property should point to a file on the local file system or on the classpath." +
-            	" The value was [" + amProperties + "]";
-    			throw new ConfigurationException(invalidPropertyMsg);
-    		}
     		Properties props = new Properties();
     		try
 			{
@@ -255,11 +246,11 @@
 			} 
     		catch (FileNotFoundException e)
 			{
-    			throw new ConfigurationException("Could not locate Access Manager(AM) configuration properties file: [" + loginUrl.getFile(), e );
+    			throw new ConfigurationException("Could not locate Access Manager(AM) configuration properties file: " + amProperties, e );
 			} 
     		catch (IOException e)
 			{
-    			throw new ConfigurationException("Could not locate Access Manager(AM) configuration properties file: [" + loginUrl.getFile(), e );
+    			throw new ConfigurationException("Could not locate Access Manager(AM) configuration properties file: " + amProperties, e );
 			}
     		SystemProperties.initializeProperties(props);
 		}

Modified: labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/build.xml
===================================================================
--- labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/build.xml	2008-07-28 18:14:23 UTC (rev 21262)
+++ labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/build.xml	2008-07-28 19:26:58 UTC (rev 21263)
@@ -5,10 +5,10 @@
 		${line.separator}
 	</description>
 
-	<property name="opensso.config.dir" value="${basedir}/opensso-config"/>
+	<!--property name="opensso.config.dir" value="${basedir}/opensso-config"/-->
 
 	 <!-- Additional files to be deployed in the sar. -->
-    <property name="additional.deploys" value="AMConfig.properties" />
+    <!--property name="additional.deploys" value="AMConfig.properties" /-->
 
 
 	<!--property name="deploy.exploded.requested" value="true" /-->
@@ -51,6 +51,7 @@
         <echo message="Copy opensso.war directory to jboss deploy directory" />
 		<unzip src="${basedir}/opensso.war" dest="${org.jboss.esb.server.deploy.dir}/opensso.war"/>
 		
+		<!--
 		<copy 
 			todir="${org.jboss.esb.server.deploy.dir}/opensso.war/WEB-INF/classes" 
 			overwrite="true" 
@@ -60,11 +61,13 @@
                 <filter token="opensso.config.dir" value="${opensso.config.dir}"/>
             </filterset>
 		</copy>
+		-->
     </target>
 
 	 <target name="quickstart-specific-deploys" depends="compile">
         <echo message="Copy jbossesb-properties.xml and jaas.login to jbossesb.sar" />
 		<copy tofile="${org.jboss.esb.server.deploy.dir}/jbossesb.sar/jbossesb-properties.xml" overwrite="true" file="${basedir}/server-jbossesb-properties.xml"/>
+		<copy tofile="${org.jboss.esb.server.deploy.dir}/jbossesb.sar/AMConfig.properties" overwrite="true" file="${basedir}/AMConfig.properties"/>
         <copy todir="${org.jboss.esb.server.deploy.dir}/jbossesb.sar" overwrite="true">
             <fileset dir="${basedir}">
                 <include name="jaas.login"/>

Added: labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/jaas.login
===================================================================
--- labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/jaas.login	                        (rev 0)
+++ labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/jaas.login	2008-07-28 19:26:58 UTC (rev 21263)
@@ -0,0 +1,9 @@
+SuccessfulLogin {
+  org.jboss.soa.esb.services.security.TestLoginModule required forceLogin=true;
+};
+FailureLogin {
+  org.jboss.soa.esb.services.security.TestLoginModule required forceLogin=false;
+};
+OpenSSOLogin {
+  org.jboss.internal.soa.esb.services.security.jaas.OpenSSOLoginModule required orgName=opensso dataStoreModule=DataStore amPropertiesFile="AMConfig.properties";
+};

Modified: labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/readme.txt
===================================================================
--- labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/readme.txt	2008-07-28 18:14:23 UTC (rev 21262)
+++ labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/readme.txt	2008-07-28 19:26:58 UTC (rev 21263)
@@ -1,6 +1,6 @@
 Overview:
 =========
-  The purpose of the opensso quickstart demonstrate integration with OpenSSO (Singel Sign On)
+  The purpose of the opensso quickstart demonstrate integration with OpenSSO (Single Sign On)
   
 
 Running this quickstart:
@@ -8,22 +8,25 @@
   Please refer to 'ant help-quickstarts' for prerequisites about the quickstarts
   and a more detailed descripton of the different ways to run the quickstarts.
 
-To Run '.esb' archive mode:
+Install and configure OpenSSO:
 ===========================
-  First time task(only needed to be performed once):
-  1. 'ant deploy-opensso' 
-	  Deploys the opensso.war to the esbserver
-  2. 'ant copy-esb-props'
-	  Copies server-jbossesb-properties and overwrites jbossesb-properties.xml in 
-	  jbossesb.sar. This addes an xml fragment names 'security' which contains the
+  Install and configure OpenSSO:
+  1. Execute 'ant deploy-opensso' from the command line.
+	  Unpacks the opensso.war to the esbserver. 
+  2. Update 'run.sh" and add '-XX:MaxPermSize=512m' JVM options.The line in run.sh should looks something like this:
+	  JAVA_OPTS="-Dprogram.name=$PROGNAME $JAVA_OPTS -XX:MaxPermSize=512m"
+  3. Open http://localhost:8080/opensso in a browser.
+  4. Click on "Create Default Configuration". 
+  5. Enter 'adminpass' for the "Default User[amAdmin]" and 'ldappass' for "Default Agent [amldapuser]"
+  6. Click on "Create Configuration". This is cause OpenSSO to configure itself
+  7. Execute 'ant copy-esb-props' from the command line.
+	  This copies server-jbossesb-properties and overwrites jbossesb-properties.xml in 
+	  jbossesb.sar. This adds an xml fragment named 'security' which contains the
 	  proprerties needed to install the OpenSSOSecrityService in the ESB.
-  3. Update 'run.sh"
-	 Add '-XX:MaxPermSize=512m' JVM option to run.sh. This is needed to run OpenSSO.
-	 The line in run.sh should looks something like this:
-	 # Setup JBoss specific properties
-	 JAVA_OPTS="-Dprogram.name=$PROGNAME $JAVA_OPTS -XX:MaxPermSize=512m"
+  8. Restart the server
 
-  Normal usage:
+To Run '.esb' archive mode:
+===========================
   1. Type 'ant deploy'.
   2. Type 'ant runtest'
 




More information about the jboss-svn-commits mailing list