Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-14875

Enhancement and refactoring of TestLdapAtnProviderWithMiniDS

    XMLWordPrintableJSON

    Details

    • Type: Test
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3.0
    • Component/s: Authentication, Tests
    • Labels:
      None

      Description

      This makes the following enhancements to TestLdapAtnProviderWithMiniDS:

      • Extract defined ldifs to a resource file.
      • Remove unneeded attributes defined in each ldif entry such as:
      • sn (Surname) and givenName from group entries
      • distinguishedName from all entries as this attribute serves more
        as a parent type of many other attributes.
      • Remove setting ExtensibleObject as an objectClass for all ldap entries
        as that is not needed. This objectClass would allow for adding any
        attribute to an entry.
      • Add missing uid attribute to group entries whose dn refer to a uid
        attribute
      • Add missing uidObject objectClass to entries that have the uid attribute
      • Explicitly set organizationalPerson objectClass to user entries as
        they are using inetOrgPerson objectClass which is a subclass of
        the organizationalPerson objectClass
      • Create indexes on cn and uid attributes as they are commonly
        queried.
      • Removed unused variables and imports.
      • Fixed givenName for user3.
      • Other minor code clean up.

        Attachments

        1. HIVE-14875.1.patch
          32 kB
          Illya Yalovyy

          Issue Links

            Activity

              People

              • Assignee:
                yalovyyi Illya Yalovyy
                Reporter:
                yalovyyi Illya Yalovyy
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: