Return-Path: Delivered-To: apmail-portals-jetspeed-dev-archive@www.apache.org Received: (qmail 51585 invoked from network); 21 Aug 2007 21:28:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Aug 2007 21:28:57 -0000 Received: (qmail 59295 invoked by uid 500); 21 Aug 2007 21:28:53 -0000 Delivered-To: apmail-portals-jetspeed-dev-archive@portals.apache.org Received: (qmail 59259 invoked by uid 500); 21 Aug 2007 21:28:53 -0000 Mailing-List: contact jetspeed-dev-help@portals.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Jetspeed Developers List" Delivered-To: mailing list jetspeed-dev@portals.apache.org Received: (qmail 59248 invoked by uid 99); 21 Aug 2007 21:28:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Aug 2007 14:28:53 -0700 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; Tue, 21 Aug 2007 21:29:28 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8F35A714208 for ; Tue, 21 Aug 2007 14:28:31 -0700 (PDT) Message-ID: <5757201.1187731711583.JavaMail.jira@brutus> Date: Tue, 21 Aug 2007 14:28:31 -0700 (PDT) From: "David Sean Taylor (JIRA)" To: jetspeed-dev@portals.apache.org Subject: [jira] Resolved: (JS2-750) LDAP login not resolving DN correctly In-Reply-To: <17155055.1184764624802.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/JS2-750?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] David Sean Taylor resolved JS2-750. ----------------------------------- Resolution: Fixed Fix Version/s: 2.2 2.1.3 patch applied, new documentation and ldif examples added for ApacheDS > LDAP login not resolving DN correctly > ------------------------------------- > > Key: JS2-750 > URL: https://issues.apache.org/jira/browse/JS2-750 > Project: Jetspeed 2 > Issue Type: Bug > Components: Security > Environment: XP, jBoss, ApacheDS > Reporter: shim manning > Assignee: David Sean Taylor > Fix For: 2.1.3, 2.2 > > > Useing ApacheDS with the supplied src\components\security\src\test\JETSPEED-INF\directory\config\apacheds\setup5\company1.ldif tree, I am unable to login to the portal. Jetspeed finds the user name correctly. But trying to login gives 'invalid password'. > I tracked the issue down to AbstractLDapDao.java in getFirstDnForUid, the userDn that is returned is relative to the search path. ie "uid=admin" is returned instead of the full DN of "uid=admin,ou=People,ou=OrgUnit1" > Because of the relative DN, the uid is not correct later when it is used. (ie "uid=admin,o=sevenSeas" instead of "uid=admin,ou=People,ou=OrgUnit1,o=sevenSeas" ) > Checking searchResult.isRelative() returns true. Attaching StringUtils.replace(getSearchDomain(), "," + getRootContext(), "") (the base search path) onto the end of userDn seems to fix this. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org For additional commands, e-mail: jetspeed-dev-help@portals.apache.org