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

Allow dynamic groupSearchFilter in LdapGroupsMapping

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      As of now the lookupGroup() method doesn't allow to have placeholders in 

      groupSearchFilter, so that can not be dynamically adjusted.

      If we have placeholders for groupSearchFilter like: (&(|(XYZ={0})(ABC={1}))(objectClass=posixGroup))

      This fails here:

       

      groupResults =
          c.search(groupbaseDN,
              "(&" + groupSearchFilter + "(" + groupMemberAttr + "={0}))",
              new Object[]{userDn},
              SEARCH_CONTROLS); 

      With 

       

       

      javax.naming.directory.InvalidSearchFilterException: number exceeds argument list: 1; remaining name 

       

      >>Dropped off or changed the details above which I thought won't be safe to disclose.

       

      Attachments

        1. dynamic-filter-idea.patch
          4 kB
          Ayush Saxena

        Issue Links

          Activity

            People

              ayushtkn Ayush Saxena
              ayushtkn Ayush Saxena
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: