geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lu Jiang (JIRA)" <>
Subject [jira] Created: (GERONIMO-4997) Can not connect to a ldap server in an anonymous way
Date Wed, 23 Dec 2009 08:11:29 GMT
Can not connect to a ldap server in an anonymous way

                 Key: GERONIMO-4997
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: security
    Affects Versions: 2.1.4, 2.2
         Environment: OS:Windows XP SP2
Server: Geronimo 2.2
            Reporter: Lu Jiang
            Priority: Minor

I tried to deploy an web application which uses Apache Directory Server for user authentication.
So I created a realm file as follows and add a reference to this realm file in deploy plan

<module xmlns="">
    <gbean name="testLDAP" class=""
xsi:type="dep:gbeanType" xmlns:dep="" xmlns:xsi="">
        <attribute name="realmName">testLDAP</attribute>
        <reference name="ServerInfo">
        <xml-reference name="LoginModuleConfiguration">
            <log:login-config xmlns:log="">
                <log:login-module control-flag="REQUIRED" wrap-principals="false">
                    <log:option name="connectionURL">ldap://</log:option>
                    <log:option name="roleBase">ou=members,ou=testgroups,</log:option>
                    <log:option name="initialContextFactory">com.sun.jndi.ldap.LdapCtxFactory</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:option name="userRoleName">uniquemember={0}</log:option>
                    <log:option name="authentication">simple</log:option>
                    <log:option name="userSearchSubtree">true</log:option>
                    <log:option name="userBase">ou=users,</log:option>
                    <log:option name="userSearchMatching">(mail={0})</log:option>

It provides no connectionUsername and password ,because I intend to connect the ldap server
Eache time,I login the web application ,it will try to connect the Apache directory server
to authenticate users.
But a NullPointerException will always occur.
Caused by: 
	at java.util.Hashtable.put(
	... 28 more

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message