geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sreepriya ramakrishnan <sreepriya_ramakrish...@yahoo.com>
Subject Geronimo-web.xml - Please help
Date Tue, 03 Oct 2006 15:27:02 GMT
Hi all,

Sorry to infiltrate your inboxes with these messages.
Please see below a copy of my geronimo-web.xml.

I have included my login modules in a jar file
test-1.0.jar and put it in the repository. If the
application deploys I am assuming , it has found the
jar dependency. But,I find that geronimo still says
that the Login Module cannot be found. Please let me
know waht I am doing wrong here.

<?xml version="1.0" encoding="UTF-8"?>
 <web-app
    xmlns="http://geronimo.apache.org/xml/ns/web"
   
xmlns:naming="http://geronimo.apache.org/xml/ns/naming"
    configId="MyConfigName">

    <dependency>
	<uri>login/Test/1.0/jar</uri>
    </dependency>

    <context-root>/testapplication</context-root>
   
<context-priority-classloader>true</context-priority-classloader>
<security-realm-name>TestRealm</security-realm-name>


    <gbean name="TestRealm"
class="org.apache.geronimo.security.realm.GenericSecurityRealm">
        <attribute
name="realmName">TestRealm</attribute>
        <reference name="ServerInfo">
           
<gbean-name>geronimo.server:J2EEApplication=null,J2EEModule=geronimo/j2ee-system/1.0/car,J2EEServer=geronimo,j2eeType=GBean,name=ServerInfo</gbean-name>
        </reference>
        <reference name="LoginService">
           
<gbean-name>geronimo.server:J2EEApplication=null,J2EEModule=geronimo/j2ee-security/1.0/car,J2EEServer=geronimo,j2eeType=JaasLoginService,name=JaasLoginService</gbean-name>
        </reference>
        <xml-reference
name="LoginModuleConfiguration">
            <log:login-config
xmlns:log="http://geronimo.apache.org/xml/ns/loginconfig-1.0">
                <log:login-module
control-flag="OPTIONAL" server-side="true"
wrap-principals="false">
                   
<log:login-domain-name>LDAPLoginManager</log:login-domain-name>
                   
<log:login-module-class>org.apache.geronimo.security.realm.providers.LDAPLoginModule</log:login-module-class>
                    <log:option
name="connectionProtocol"/>
                    <log:option
name="roleSearchMatching">(uniqueMember={0})</log:option>
                    <log:option
name="userSearchSubtree">false</log:option>
                    <log:option
name="roleName">cn</log:option>
                    <log:option
name="roleBase">ou=groups,ou=system</log:option>
                    <log:option name="userRoleName"/>
                    <log:option
name="authentication">simple</log:option>
                    <log:option
name="connectionURL">ldap://localhost:1389</log:option>
                    <log:option
name="connectionUsername">uid=admin,ou=system</log:option>
                    <log:option
name="userBase">ou=users,ou=system</log:option>
                    <log:option
name="initialContextFactory">com.sun.jndi.ldap.LdapCtxFactory</log:option>
                    <log:option
name="roleSearchSubtree">false</log:option>
                    <log:option
name="connectionPassword">secret</log:option>
                    <log:option
name="userSearchMatching">uid={0}</log:option>
                </log:login-module>
                <log:login-module
control-flag="SUFFICIENT" server-side="true"
wrap-principals="false">
                   
<log:login-domain-name>DBLoginManager</log:login-domain-name>
                   
<log:login-module-class>com.test.TestLoginModule</log:login-module-class>
                </log:login-module>
            </log:login-config>
        </xml-reference>
    </gbean>


 </web-app>


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Mime
View raw message