Hadoop Common
  1. Hadoop Common
  2. HADOOP-10249

LdapGroupsMapping should trim ldap password read from file

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.4.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      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.

      1. HADOOP-10249.patch
        0.7 kB
        Dilli Arumugam

        Activity

        Dilli Arumugam created issue -
        Suresh Srinivas made changes -
        Field Original Value New Value
        Assignee Dilli Arumugam [ darumugam ]
        Dilli Arumugam made changes -
        Attachment HADOOP-10249.patch [ 12624949 ]
        Suresh Srinivas made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Suresh Srinivas made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Hadoop Flags Reviewed [ 10343 ]
        Fix Version/s 2.4.0 [ 12326144 ]
        Resolution Fixed [ 1 ]
        Arun C Murthy made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Dilli Arumugam
            Reporter:
            Dilli Arumugam
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development