Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 85097 invoked from network); 16 Aug 2006 18:09:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Aug 2006 18:09:12 -0000 Received: (qmail 65314 invoked by uid 500); 16 Aug 2006 18:09:11 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 65271 invoked by uid 500); 16 Aug 2006 18:09:11 -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 65260 invoked by uid 99); 16 Aug 2006 18:09:11 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Aug 2006 11:09:11 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Aug 2006 11:09:10 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CB4CF714293 for ; Wed, 16 Aug 2006 18:06:14 +0000 (GMT) Message-ID: <28782479.1155751574830.JavaMail.jira@brutus> Date: Wed, 16 Aug 2006 11:06:14 -0700 (PDT) From: "Emmanuel Lecharny (JIRA)" To: dev@directory.apache.org Subject: [jira] Assigned: (DIRSERVER-582) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 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 [ http://issues.apache.org/jira/browse/DIRSERVER-582?page=all ] Emmanuel Lecharny reassigned DIRSERVER-582: ------------------------------------------- Assignee: Emmanuel Lecharny > ------------------------------------- > > Key: DIRSERVER-582 > URL: http://issues.apache.org/jira/browse/DIRSERVER-582 > Project: Directory ApacheDS > Issue Type: Bug > Affects Versions: 1.0-RC2 > Reporter: Emmanuel Lecharny > Assigned To: Emmanuel Lecharny > > While stepping throgh the Bind code base, I saw that the password is compared using its byte[] representation : > userPassword = ( ( String ) userPassword ).getBytes(); > ... > credentialsMatch = ArrayUtils.isEquals( creds, userPassword ); > in SimpleAuthenticator class. The problem is that ( ( String ) userPassword ).getBytes() may returns a wrong string if the password contains UTF-8 chars but the local encoding is not UTF-8 (W$ users, mainly, who use ISO-8859-1) > This line should be : userPassword = StringTools.getBytesUtf8( ( String ) userPassword ); > Of course, the password *must* be contained in a UTF-8 file (server.xml must be declared as UTF-8 encoded) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira