Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 72E0810FD6 for ; Fri, 14 Feb 2014 00:08:31 +0000 (UTC) Received: (qmail 80376 invoked by uid 500); 14 Feb 2014 00:08:25 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 80306 invoked by uid 500); 14 Feb 2014 00:08:23 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 80292 invoked by uid 99); 14 Feb 2014 00:08:23 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Feb 2014 00:08:23 +0000 Date: Fri, 14 Feb 2014 00:08:23 +0000 (UTC) From: "Hudson (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-10249) LdapGroupsMapping should trim ldap password read from file 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/HADOOP-10249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13900934#comment-13900934 ] Hudson commented on HADOOP-10249: --------------------------------- SUCCESS: Integrated in Hadoop-trunk-Commit #5167 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/5167/]) HADOOP-10249. LdapGroupsMapping should trim ldap password read from file. Contributed by Dilli Armugam. (suresh: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1568164) * /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt * /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/LdapGroupsMapping.java > LdapGroupsMapping should trim ldap password read from file > ---------------------------------------------------------- > > Key: HADOOP-10249 > URL: https://issues.apache.org/jira/browse/HADOOP-10249 > Project: Hadoop Common > Issue Type: Bug > Affects Versions: 2.2.0 > Reporter: Dilli Arumugam > Assignee: Dilli Arumugam > Fix For: 2.4.0 > > Attachments: HADOOP-10249.patch > > > org.apache.hadoop.security.LdapGroupsMapping allows specifying ldap connection password in a file using property key > hadoop.security.group.mapping.ldap.bind.password.file > The code in LdapGroupsMapping that reads the content of the password file does not trim the password value. This causes ldap connection failure as the password in the password file ends up having a trailing newline. > Most of the text editors and echo adds a new line at the end of file. > So, LdapGroupsMapping should trim the password read from the file. -- This message was sent by Atlassian JIRA (v6.1.5#6160)