geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r586036 - in /geronimo/samples/trunk/samples/ldap-sample-app: ldap-realm.xml ldap-sample-app-war/src/main/webapp/ldap-sample.ldif ldap-sample.ldif
Date Thu, 18 Oct 2007 17:19:25 GMT
Author: gawor
Date: Thu Oct 18 10:19:24 2007
New Revision: 586036

URL: http://svn.apache.org/viewvc?rev=586036&view=rev
Log:
added ldap-realm.xml and moved ldap-sample.ldif

Added:
    geronimo/samples/trunk/samples/ldap-sample-app/ldap-realm.xml   (with props)
    geronimo/samples/trunk/samples/ldap-sample-app/ldap-sample.ldif
      - copied unchanged from r586030, geronimo/samples/trunk/samples/ldap-sample-app/ldap-sample-app-war/src/main/webapp/ldap-sample.ldif
Removed:
    geronimo/samples/trunk/samples/ldap-sample-app/ldap-sample-app-war/src/main/webapp/ldap-sample.ldif

Added: geronimo/samples/trunk/samples/ldap-sample-app/ldap-realm.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/ldap-sample-app/ldap-realm.xml?rev=586036&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/ldap-sample-app/ldap-realm.xml (added)
+++ geronimo/samples/trunk/samples/ldap-sample-app/ldap-realm.xml Thu Oct 18 10:19:24 2007
@@ -0,0 +1,51 @@
+<module xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
+    <environment>
+        <moduleId>
+            <groupId>console.realm</groupId>
+            <artifactId>LDAP_Sample_Realm</artifactId>
+            <version>1.0</version>
+            <type>car</type>
+        </moduleId>
+        <dependencies>
+            <dependency>
+                <groupId>org.apache.geronimo.configs</groupId>
+                <artifactId>j2ee-security</artifactId>
+                <type>car</type>
+            </dependency>
+        </dependencies>
+    </environment>
+    <gbean name="LDAP_Sample_Realm" class="org.apache.geronimo.security.realm.GenericSecurityRealm"

+                                    xsi:type="dep:gbeanType" xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2"

+                                    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+        <attribute name="realmName">LDAP_Sample_Realm</attribute>
+        <reference name="ServerInfo">
+            <name>ServerInfo</name>
+        </reference>
+        <xml-reference name="LoginModuleConfiguration">
+            <log:login-config xmlns:log="http://geronimo.apache.org/xml/ns/loginconfig-1.2">
+                <log:login-module control-flag="REQUIRED" wrap-principals="false">
+                    <log:login-domain-name>LDAP_Sample_Realm</log:login-domain-name>
+                    <log:login-module-class>org.apache.geronimo.security.realm.providers.LDAPLoginModule</log:login-module-class>
+                    <log:option name="initialContextFactory">com.sun.jndi.ldap.LdapCtxFactory</log:option>
+                    <log:option name="connectionURL">ldap://localhost:10389</log:option>
+                    <log:option name="connectionUsername">uid=admin,ou=system</log:option>
+                    <log:option name="connectionPassword">secret</log:option>
+                    <log:option name="authentication">simple</log:option>
+                    <log:option name="userBase">ou=users,ou=system</log:option>
+                    <log:option name="userSearchMatching">uid={0}</log:option>
+                    <log:option name="userSearchSubtree">false</log:option>
+                    <log:option name="roleBase">ou=groups,ou=system</log:option>
+                    <log:option name="roleName">cn</log:option>
+                    <log:option name="roleSearchMatching">(uniqueMember={0})</log:option>
+                    <log:option name="roleSearchSubtree">false</log:option>
+                </log:login-module>
+                <log:login-module control-flag="OPTIONAL" wrap-principals="false">
+                    <log:login-domain-name>LDAP_Sample_Realm-Audit</log:login-domain-name>
+                    <log:login-module-class>org.apache.geronimo.security.realm.providers.FileAuditLoginModule</log:login-module-class>
+                    <log:option name="file">var/log/login-attempts.log</log:option>
+                </log:login-module>
+            </log:login-config>
+        </xml-reference>
+    </gbean>
+</module>
+

Propchange: geronimo/samples/trunk/samples/ldap-sample-app/ldap-realm.xml
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message