[jboss-cvs] JBossAS SVN: r90700 - branches/JBPAPP_5_0/build.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Jun 30 14:24:16 EDT 2009
Author: smarlow at redhat.com
Date: 2009-06-30 14:24:16 -0400 (Tue, 30 Jun 2009)
New Revision: 90700
Added:
branches/JBPAPP_5_0/build/jbossas-5-enableauth.patch
Modified:
branches/JBPAPP_5_0/build/build.xml
Log:
JBPAPP-2052 Production profile for EAP 5
Modified: branches/JBPAPP_5_0/build/build.xml
===================================================================
--- branches/JBPAPP_5_0/build/build.xml 2009-06-30 16:02:41 UTC (rev 90699)
+++ branches/JBPAPP_5_0/build/build.xml 2009-06-30 18:24:16 UTC (rev 90700)
@@ -736,8 +736,18 @@
<!-- <antcall target="processSecurityAnnotations"/> -->
<antcall target="jboss-all-client"/>
<!--<antcall target="setup-ejb3-dist"/>-->
+ <antcall target="apply_auth_patch"/>
</target>
+ <target name="apply_auth_patch" unless="build.unsecure">
+ <echo> "building secure in folder ${install.root}"</echo>
+ <patch patchFile="jbossas-5-enableauth.patch" dir="${install.root}" strip="0">
+
+ </patch>
+
+
+ </target>
+
<!-- Update config files -->
<target name="makeConfigChanges"
depends="makeProductionConfigChanges">
Added: branches/JBPAPP_5_0/build/jbossas-5-enableauth.patch
===================================================================
--- branches/JBPAPP_5_0/build/jbossas-5-enableauth.patch (rev 0)
+++ branches/JBPAPP_5_0/build/jbossas-5-enableauth.patch 2009-06-30 18:24:16 UTC (rev 90700)
@@ -0,0 +1,88 @@
+diff -Naur ./server/production/conf/login-config.xml ./server/production/conf/login-config.xml
+--- ./server/production/conf/login-config.xml 2009-06-30 09:32:56.000000000 -0400
++++ ./server/production/conf/login-config.xml 2009-06-30 10:11:15.000000000 -0400
+@@ -85,8 +85,8 @@
+ <authentication>
+ <login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule"
+ flag="required">
+- <module-option name="usersProperties">web-console-users.properties</module-option>
+- <module-option name="rolesProperties">web-console-roles.properties</module-option>
++ <module-option name="usersProperties">props/web-console-users.properties</module-option>
++ <module-option name="rolesProperties">props/web-console-roles.properties</module-option>
+ </login-module>
+ </authentication>
+ </application-policy>
+diff -Naur ./server/production/conf/props/web-console-roles.properties ./server/production/conf/props/web-console-roles.properties
+--- ./server/production/conf/props/web-console-roles.properties 1969-12-31 19:00:00.000000000 -0500
++++ ./server/production/conf/props/web-console-roles.properties 2009-06-30 10:54:23.000000000 -0400
+@@ -0,0 +1,2 @@
++# A sample roles.properties file for use with the UsersRolesLoginModule
++admin=JBossAdmin,HttpInvoker
+diff -Naur ./server/production/conf/props/web-console-users.properties ./server/production/conf/props/web-console-users.properties
+--- ./server/production/conf/props/web-console-users.properties 1969-12-31 19:00:00.000000000 -0500
++++ ./server/production/conf/props/web-console-users.properties 2009-06-30 10:19:36.000000000 -0400
+@@ -0,0 +1,2 @@
++# A sample users.properties file for use with the UsersRolesLoginModule
++admin=admin
+diff -Naur ./server/production/deploy/jmx-console.war/WEB-INF/jboss-web.xml ./server/production/deploy/jmx-console.war/WEB-INF/jboss-web.xml
+--- ./server/production/deploy/jmx-console.war/WEB-INF/jboss-web.xml 2009-06-30 09:32:55.000000000 -0400
++++ ./server/production/deploy/jmx-console.war/WEB-INF/jboss-web.xml 2009-06-30 10:01:01.000000000 -0400
+@@ -6,6 +6,6 @@
+ <!-- Uncomment the security-domain to enable security. You will
+ need to edit the htmladaptor login configuration to setup the
+ login modules used to authentication users.
+- <security-domain>java:/jaas/jmx-console</security-domain>
+ -->
++ <security-domain>java:/jaas/jmx-console</security-domain>
+ </jboss-web>
+diff -Naur ./server/production/deploy/jmx-console.war/WEB-INF/web.xml ./server/production/deploy/jmx-console.war/WEB-INF/web.xml
+--- ./server/production/deploy/jmx-console.war/WEB-INF/web.xml 2009-06-30 09:32:55.000000000 -0400
++++ ./server/production/deploy/jmx-console.war/WEB-INF/web.xml 2009-06-30 09:41:52.000000000 -0400
+@@ -97,6 +97,7 @@
+ to users with the role JBossAdmin. Edit the roles to what you want and
+ uncomment the WEB-INF/jboss-web.xml/security-domain element to enable
+ secured access to the HTML JMX console.
++ -->
+ <security-constraint>
+ <web-resource-collection>
+ <web-resource-name>HtmlAdaptor</web-resource-name>
+@@ -111,7 +112,6 @@
+ <role-name>JBossAdmin</role-name>
+ </auth-constraint>
+ </security-constraint>
+- -->
+
+ <login-config>
+ <auth-method>BASIC</auth-method>
+diff -Naur ./server/production/deploy/management/console-mgr.sar/web-console.war/WEB-INF/jboss-web.xml ./server/production/deploy/management/console-mgr.sar/web-console.war/WEB-INF/jboss-web.xml
+--- ./server/production/deploy/management/console-mgr.sar/web-console.war/WEB-INF/jboss-web.xml 2009-06-30 09:32:55.000000000 -0400
++++ ./server/production/deploy/management/console-mgr.sar/web-console.war/WEB-INF/jboss-web.xml 2009-06-30 10:09:05.000000000 -0400
+@@ -9,8 +9,8 @@
+ <!-- Uncomment the security-domain to enable security. You will
+ need to edit the htmladaptor login configuration to setup the
+ login modules used to authentication users.
+- <security-domain>java:/jaas/web-console</security-domain>
+ -->
++ <security-domain>java:/jaas/web-console</security-domain>
+
+ <!-- The war depends on the -->
+ <depends>jboss.admin:service=PluginManager</depends>
+diff -Naur ./server/production/deploy/management/console-mgr.sar/web-console.war/WEB-INF/web.xml ./server/production/deploy/management/console-mgr.sar/web-console.war/WEB-INF/web.xml
+--- ./server/production/deploy/management/console-mgr.sar/web-console.war/WEB-INF/web.xml 2009-06-30 09:32:55.000000000 -0400
++++ ./server/production/deploy/management/console-mgr.sar/web-console.war/WEB-INF/web.xml 2009-06-30 10:06:51.000000000 -0400
+@@ -339,6 +339,7 @@
+ to users with the role JBossAdmin. Edit the roles to what you want and
+ uncomment the WEB-INF/jboss-web.xml/security-domain element to enable
+ secured access to the HTML JMX console.
++ -->
+
+ <security-constraint>
+ <web-resource-collection>
+@@ -354,7 +355,6 @@
+ <role-name>JBossAdmin</role-name>
+ </auth-constraint>
+ </security-constraint>
+- -->
+
+ <login-config>
+ <auth-method>BASIC</auth-method>
More information about the jboss-cvs-commits
mailing list