Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 99004 invoked from network); 19 Dec 2005 18:08:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Dec 2005 18:08:24 -0000 Received: (qmail 95380 invoked by uid 500); 19 Dec 2005 18:08:20 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 94920 invoked by uid 500); 19 Dec 2005 18:08:16 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 94698 invoked by uid 99); 19 Dec 2005 18:08:13 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Dec 2005 10:08:13 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [81.169.145.161] (HELO natfrord.rzone.de) (81.169.145.161) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Dec 2005 10:04:53 -0800 Received: from [127.0.0.1] (p548FE490.dip.t-dialin.net [84.143.228.144]) (authenticated bits=0) by post.webmailer.de (8.13.1/8.13.1) with ESMTP id jBJI4TFF007839 for ; Mon, 19 Dec 2005 19:04:31 +0100 (MET) Message-ID: <43A6F62D.4070305@apache.org> Date: Mon, 19 Dec 2005 19:04:29 +0100 From: Stefan Zoerner User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Apache Directory Developers List Subject: Re: [ApacheDS] authentication problem References: <003401c604ba$a80b7870$53203180@xtcf.spawar.navy.mil> In-Reply-To: <003401c604ba$a80b7870$53203180@xtcf.spawar.navy.mil> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Jeff Lansing wrote: > > I am using Windows XP with openldap 2.2.19. If I change the quotes as you > suggest then the examples work ok. > Thank you for your valuable feedback, Jeff. In order to prevent others from this trap I have modified the type of quotes in the LDAP command line tool examples here: http://directory.apache.org/subprojects/apacheds/users/authentication.html How about your other problem? Does it still exist? You told us about a code snippet like this: InitialDirContext ctx = new InitialDirContext(); LdapName name = new LdapName("ou=users"); Attributes attributes = new LockableAttributesImpl(); attributes.put("uid", "jdoe"); NamingEnumeration ne = ctx.search(name, attributes); Can you provide information about the JNDI config you use (file jndi.properties, for instance)? Is it the LDAP provider from Sun, and are you talking about the network with plain LDAP? If so, I do not understand why you use class LockableAttributesImpl, which is not part of JNDI. In order to create portable client code, class javax.naming.directory.BasicAttributes should work for you. Greetings, Stefan