Uploaded image for project: 'Apache Knox'
  1. Apache Knox
  2. KNOX-650

Add posixGroups support for LDAP groups lookup

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.7.0
    • 0.8.0
    • None
    • Patch

    Description

      Add posixGroups support for LDAP group lookup. The current implementation works only with groupOfNames.
      posixGroups have "memberUid" attribute which is different from "member" attribute, and when we set main.ldapRealm.memberAttribute equal to "memberUid", this line (306) in org.apache.hadoop.gateway.shirorealm.KnoxLdapRealm.java:

      if (userLdapDn.equals(new LdapName(attrValue)))
      

      will generate an InvalidNameException because "memberUid" is just an id and not formatted according to the rules defined in RFC 2253.

      To fix this, we need to just test if the group is a posixGroup and then update attrValue by adding memberAttributeValuePrefix and memberAttributeValueSuffix

      Attachments

        1. KNOX-650.patch
          2 kB
          Selim Namsi
        2. 0001-KNOX-650-Add-posixGroups-support-for-LDAP-groups-loo.patch
          20 kB
          Kevin Minder

        Activity

          People

            snamsi Selim Namsi
            snamsi Selim Namsi
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: