Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 21673 invoked from network); 3 Jan 2008 12:45:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Jan 2008 12:45:55 -0000 Received: (qmail 7012 invoked by uid 500); 3 Jan 2008 12:45:43 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 6967 invoked by uid 500); 3 Jan 2008 12:45:43 -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 6956 invoked by uid 99); 3 Jan 2008 12:45:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jan 2008 04:45:43 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jan 2008 12:45:29 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1916B714187 for ; Thu, 3 Jan 2008 04:45:34 -0800 (PST) Message-ID: <8031511.1199364334094.JavaMail.jira@brutus> Date: Thu, 3 Jan 2008 04:45:34 -0800 (PST) From: "Simon Temple (JIRA)" To: dev@directory.apache.org Subject: [jira] Commented: (DIRSERVER-1115) server-jndi: org.apache.directory.server.configuration.ApacheDS throws java.lang.IllegalStateException: Names used for principals must be normalized! In-Reply-To: <5269410.1199353894115.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DIRSERVER-1115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12555554#action_12555554 ] Simon Temple commented on DIRSERVER-1115: ----------------------------------------- I think your proposed fix will fail. The problem with your solution is that the constructor(s) LdapDN( String | Name ) doesn't know you're passing in a normalized DN. The attribute ldapDN.isNormailized is false You could use the constructor with no arguments which sets normailized=true and then dn.add( ServerDNConstants.ADMIN_SYSTEM_DN ) but Alex was not very happy with this and recommended the method in my patch. I think you need to call normailze() on LdapDN. > server-jndi: org.apache.directory.server.configuration.ApacheDS throws java.lang.IllegalStateException: Names used for principals must be normalized! > ----------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: DIRSERVER-1115 > URL: https://issues.apache.org/jira/browse/DIRSERVER-1115 > Project: Directory ApacheDS > Issue Type: Bug > Affects Versions: 1.5.2 > Environment: Win 2003 Server, Sun JDK 1.5.1_11 > Reporter: Simon Temple > Fix For: 1.5.2 > > Attachments: ds.patch > > > Alex suggested: > " I recommend you proceed like so for now: > (1) get a handle on the DirectoryService > (2) access the attributeType registry via directoryService.getRegistries().getAttributeTypeRegistry() > (3) from the attribute type registry access the normalizer map getNormalizerMap() or something like that > (4) feed this into the dn.normalize() method of the dn you feed into LdapPrincipal" > This fixes the runtime problem. > ** In addition, I'd like to request the method setLdifFilters() is made public so an embedded application can continue to provide them (as was the case with 1.0 and 1.5.1) ** > I'm not a committer but will attach a patch file. Would you please consider and apply the patch? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.