Uploaded image for project: 'PicketLink'
  1. PicketLink
  2. PLINK-485

User created with IDM in ActiveDirectory doesn't have correct ID returned

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • PLINK_2.6.0.CR5
    • PLINK_2.6.0.CR3
    • IDM
    • None

      Code like this should create user with assigned ID and searching by this user should return same user:

      User newUser = new User(username);
      identityManager.add(newUser);
      
      User searchedUser = BasicModel.getUser(username);
      Assert.assertEquals(newUser.getId(), searchedUser.getId());
      

      In Active Directory, the specified Assert doesn't work. newUser doesn't have correct ID assigned due to method LDAPIdentityStore.getEntryIdentifier, which doesn't correctly parse ID from Active Directory in byte[] format. It should use:

      this.operationManager.decodeEntryUUID(id.get()) 
      

      similarly like LDAPIdentityStore.populateAttributedType .

              mposolda@redhat.com Marek Posolda
              mposolda@redhat.com Marek Posolda
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: