Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-2649

Unix user doesn't get 'Admin' role when set through assignment rules

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.1.0
    • Ranger
    • None

    Description

      Reproduction

      Preconditions

      • User sync source is set to Unix (ranger.usersync.source.impl.class set to org.apache.ranger.unixusersync.process.UnixUserGroupBuilder)
      • user2 is a unix user, and user2 is deleted in Ranger

      Steps

      1. Set ranger.usersync.group.based.role.assignment.rules to ROLE_SYS_ADMIN:u:user2
      2. Restart Ranger
      3. In ranger admin page go to Settings -> Users/Groups. Look for user2, and observe it has the role 'User'
      4. Restart Ranger again
      5. Repeat step 3. but this time observe that user2 has the role 'Admin'

      Expected behaviour

      user2 should get 'Admin' role right after the first restart.

      Attachments

        1. RANGER-2649.patch
          2 kB
          Dhaval Shah

        Issue Links

          Activity

            People

              dhavalshah9131 Dhaval Shah
              suja suja s
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: