Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-12785

[Handling exceptions] LdapGroupsMapping.getGroups() do not provide information about root cause

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.7.1
    • None
    • security
    • Operating system: CentOS Linux 7 (7.1.1503)
      Platform: HDP 2.3.4.0, Ambari 2.1.2

    Description

      CommunicationException and NamingException are not logged in LdapGroupsMapping.getGroups().

      LdapGroupsMapping.java
        public synchronized List<String> getGroups(String user) throws IOException {
          List<String> emptyResults = new ArrayList<String>();
          // ...
          try {
            return doGetGroups(user);
          } catch (CommunicationException e) {
            LOG.warn("Connection is closed, will try to reconnect");
          } catch (NamingException e) {
            LOG.warn("Exception trying to get groups for user " + user + ": " + e.getMessage());
            return emptyResults;
          }
          //...
          return emptyResults;
        }
      

      It is not possible to understand LDAP level failures.

      Attachments

        1. HADOOP-12785.001.patch
          9 kB
          Wei-Chiu Chuang

        Issue Links

          Activity

            People

              weichiu Wei-Chiu Chuang
              mbuzdov Mukhadin Buzdov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: