HADOOP-10249. Merge 1568164 from trunk.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1568166 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Suresh Srinivas 2014-02-13 23:47:58 +00:00
parent 62cc4908c5
commit 42ebc843e9
2 changed files with 4 additions and 1 deletions

View File

@ -41,6 +41,9 @@ Release 2.4.0 - UNRELEASED
HADOOP-10338. Cannot get the FileStatus of the root inode from the new HADOOP-10338. Cannot get the FileStatus of the root inode from the new
Globber (cmccabe) Globber (cmccabe)
HADOOP-10249. LdapGroupsMapping should trim ldap password read from file.
(Dilli Armugam via suresh)
Release 2.3.1 - UNRELEASED Release 2.3.1 - UNRELEASED
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -356,7 +356,7 @@ public class LdapGroupsMapping
c = reader.read(); c = reader.read();
} }
reader.close(); reader.close();
return password.toString(); return password.toString().trim();
} catch (IOException ioe) { } catch (IOException ioe) {
throw new RuntimeException("Could not read password file: " + pwFile, ioe); throw new RuntimeException("Could not read password file: " + pwFile, ioe);
} }