adc 2004/05/30 12:06:53
Modified: modules/assembly/src/plan j2ee-server-plan.xml
Added: modules/assembly/src/plan j2ee-secure-plan.xml
Log:
Added security configurations.
Revision Changes Path
1.20 +5 -1
incubator-geronimo/modules/assembly/src/plan/j2ee-server-plan.xml
Index: j2ee-server-plan.xml
===================================================================
RCS file:
/home/cvs/incubator-geronimo/modules/assembly/src/plan/j2ee-server-plan.xml,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- j2ee-server-plan.xml 29 May 2004 05:13:16 -0000 1.19
+++ j2ee-server-plan.xml 30 May 2004 19:06:53 -0000 1.20
@@ -80,6 +80,9 @@
<reference
name="ServerInfo">geronimo.system:role=ServerInfo</reference>
</gbean>
+ <!-- Register GeronimoLoginConfiguration as the LoginConfiguration
handler -->
+ <gbean name="geronimo.security:type=LoginConfiguration"
class="org.apache.geronimo.security.jaas.GeronimoLoginConfiguration"/>
+
<gbean name="geronimo.security:type=SecurityService"
class="org.apache.geronimo.security.SecurityService">
<attribute name="PolicyConfigurationFactory"
type="java.lang.String">org.apache.geronimo.security.jacc.GeronimoPolicyConfigurationFactory</attribute>
<reference
name="Realms">geronimo.security:type=SecurityRealm,*</reference>
@@ -132,7 +135,8 @@
<attribute name="Url"
type="java.lang.String">tcp://localhost:61616</attribute>
<reference
name="ActiveMQContainer">geronimo.server:type=JMSServer,container=ActiveMQ</reference>
</gbean>
--->
+ -->
+
<!-- EJB container -->
<!-- pattern domain name must match the domain of the j2eeServer
attribute of the EAR builder in the deployer plan -->
1.1
incubator-geronimo/modules/assembly/src/plan/j2ee-secure-plan.xml
Index: j2ee-secure-plan.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2004 The Apache Software Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!--
Configuration for the main ring of a Geronimo server.
This configuration should contain those services normally provided
by the server.
-->
<configuration
xmlns="http://geronimo.apache.org/xml/ns/deployment"
configId="org/apache/geronimo/Secure"
parentId="org/apache/geronimo/Server"
>
<dependency>
<uri>geronimo/jars/geronimo-jetty-1.0-SNAPSHOT.jar</uri>
</dependency>
<!-- Security GBeans -->
<!-- JAAS Application Config Entry -->
<gbean name="geronimo.security:type=ConfigurationEntry,jaasId=jaasTest"
class="org.apache.geronimo.security.jaas.ConfigurationEntryRealmLocal">
<attribute name="JAASId" type="java.lang.String">jaasTest</attribute>
<attribute name="RealmName"
type="java.lang.String">demo-properties-realm</attribute>
<attribute name="ControlFlag"
type="org.apache.geronimo.security.jaas.LoginModuleControlFlag">REQUIRED</attribute>
<attribute name="Options"
type="java.util.Properties">foo=bar</attribute>
</gbean>
<!-- Demo Properties File Realm -->
<gbean
name="geronimo.security:type=SecurityRealm,realm=demo-properties-realm"
class="org.apache.geronimo.security.realm.providers.PropertiesFileSecurityRealm">
<attribute name="RealmName"
type="java.lang.String">demo-properties-realm</attribute>
<attribute name="MaxLoginModuleAge" type="long">10000</attribute>
<attribute name="UsersURI"
type="java.net.URI">var/security/demo_users.properties</attribute>
<attribute name="GroupsURI"
type="java.net.URI">var/security/demo_groups.properties</attribute>
<reference
name="ServerInfo">geronimo.system:role=ServerInfo</reference>
</gbean>
<!-- Jetty Realm that points to the Geronimo Demo Properties File Realm
-->
<gbean name="geronimo.jetty:role=JaasRealm"
class="org.apache.geronimo.jetty.JAASJettyRealm">
<reference
name="JettyContainer">geronimo.server:type=WebContainer,container=Jetty</reference>
<attribute name="Name" type="java.lang.String">Jetty JAAS
Realm</attribute>
<attribute name="LoginModuleName"
type="java.lang.String">jaasTest</attribute>
</gbean>
</configuration>