Affects Version/s: 2.2.0
Fix Version/s: 2.4.0
org.apache.hadoop.security.LdapGroupsMapping allows specifying ldap connection password in a file using property key
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.
|Field||Original Value||New Value|
|Assignee||Dilli Arumugam [ darumugam ]|
|Status||Open [ 1 ]||Patch Available [ 10002 ]|
|Status||Patch Available [ 10002 ]||Resolved [ 5 ]|
|Hadoop Flags||Reviewed [ 10343 ]|
|Fix Version/s||2.4.0 [ 12326144 ]|
|Resolution||Fixed [ 1 ]|
|Status||Resolved [ 5 ]||Closed [ 6 ]|