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

Usersync NPE when object does not have userNameAttribute

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.4.0
    • Fix Version/s: 0.5.0
    • Component/s: None
    • Labels:
      None

      Description

      PROBLEM: When running usersync and a user that matches the userSearchFilter does not contain the attributed specified as userNameAttribute, the updateSink function fails with a NPE:

      16 Feb 2015 18:16:44 ERROR UserGroupSync [UnixUserSyncThread] - Failed to initialize UserGroup source/sink. Will retry after 120000 milliseconds. Error details:
      java.lang.NullPointerException
      at com.xasecure.ldapusersync.process.LdapUserGroupBuilder.updateSink(LdapUserGroupBuilder.java:201)
      at com.xasecure.usergroupsync.UserGroupSync.run(UserGroupSync.java:59)
      at java.lang.Thread.run(Thread.java:745)

        Attachments

        1. RANGER-320.1.patch
          2 kB
          Dilli Arumugam
        2. RANGER-320.2.patch
          3 kB
          Dilli Arumugam

          Issue Links

            Activity

              People

              • Assignee:
                darumugam Dilli Arumugam
                Reporter:
                darumugam Dilli Arumugam
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: