Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 36125 invoked from network); 10 Feb 2010 07:08:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Feb 2010 07:08:58 -0000 Received: (qmail 5843 invoked by uid 500); 10 Feb 2010 07:08:57 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 5637 invoked by uid 500); 10 Feb 2010 07:08:56 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 5628 invoked by uid 99); 10 Feb 2010 07:08:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Feb 2010 07:08:56 +0000 X-ASF-Spam-Status: No, hits=-1998.5 required=10.0 tests=ALL_TRUSTED,WEIRD_PORT X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Feb 2010 07:08:48 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E7F8229A0014 for ; Tue, 9 Feb 2010 23:08:27 -0800 (PST) Message-ID: <2061257123.173391265785707948.JavaMail.jira@brutus.apache.org> Date: Wed, 10 Feb 2010 07:08:27 +0000 (UTC) From: "Lu Jiang (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Updated: (GERONIMO-4997) Can not connect to a ldap server in an anonymous way In-Reply-To: <1339062644.1261555889546.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/GERONIMO-4997?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lu Jiang updated GERONIMO-4997: ------------------------------- Attachment: geronimo-security-2.1.4.jar > Can not connect to a ldap server in an anonymous way > ---------------------------------------------------- > > Key: GERONIMO-4997 > URL: https://issues.apache.org/jira/browse/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 > JDK:1.6 > Reporter: Lu Jiang > Priority: Minor > Fix For: 2.1.5, 2.2.1, 3.0 > > Attachments: geronimo-security-2.1.4.jar > > > 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 > > > > console.realm > testLDAP > 1.0 > car > > > > org.apache.geronimo.framework > j2ee-security > car > > > > > testLDAP > > ServerInfo > > > > > testLDAP > org.apache.geronimo.security.realm.providers.LDAPLoginModule > ldap://pages.test.com:389 > ou=members,ou=testgroups,o=test.com > com.sun.jndi.ldap.LdapCtxFactory > cn > uniquemember={0} > false > uniquemember={0} > simple > true > ou=users,o=test.com > (mail={0}) > > > > > > It provides no connectionUsername and password ,because I intend to connect the ldap server anonymously. > 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: > java.lang.NullPointerException > at java.util.Hashtable.put(Hashtable.java:770) > at org.apache.geronimo.security.realm.providers.LDAPLoginModule.open(LDAPLoginModule.java:455) > at org.apache.geronimo.security.realm.providers.LDAPLoginModule.authenticate(LDAPLoginModule.java:267) > at org.apache.geronimo.security.realm.providers.LDAPLoginModule.login(LDAPLoginModule.java:186) > ... 28 more -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.