Uploaded image for project: 'OpenDJ'
  1. OpenDJ
  2. OPENDJ-7601

Backport OPENDJ-7599: Cannot add a pre-encoded password to an entry without an existing password

    XMLWordPrintable

    Details

      Description

      Set up the default password policy to allow pre-encoded passwords. Create a new entry (which uses that policy) but do not assign it a userPassword.

      dn: cn=test,dc=example,dc=com
      changetype: add
      objectclass: inetOrgPerson
      cn: test
      sn: test
      

      Attempt to add a password via ldapmodify:

      dn: cn=test,dc=example,dc=com
      changetype: modify
      replace: userPassword
      userPassword: {PBKDF2-HMAC-SHA256}10:IJO+SxzYlD+JNG3n6a+ZXlLSUQPDk5gGdYPhN84OSuJ0uO4lKqxjzd0HNpUSuaPJ
      -
      

      (I copied that password value from the uid=user.0 entry)

      The modify fails with a NPE:

      {"eventName":"DJ-LDAP","client":{"ip":"127.0.0.1","port":49124},"server":{"ip":"127.0.0.1","port":389},"request":{"protocol":"LDAP","operation":"DISCONNECT","connId":33,"message":"Worker Thread 0 encountered an uncaught exception while processing operation ModifyOperation(connID=33, opID=1, dn=cn=test,dc=example,dc=com): NullPointerException (ModifyOperation.java:995 ModifyOperation.java:963 ModifyOperation.java:845 ModifyOperation.java:828 ModifyOperation.java:558 ModifyOperation.java:440 ModifyOperation.java:370 TraditionalWorkQueue.java:347)"},"transactionId":"0","response":{"status":"SUCCESSFUL","statusCode":"0","elapsedTime":0,"elapsedTimeUnits":"MILLISECONDS","reason":"Server Error"},"timestamp":"2020-10-25T11:16:38.208Z","_id":"f8a4e463-969b-461c-8619-d29ead7d59e6-1273"}
      

      It looks like this broke in OPENDJ-6859, or possibly in a subsequent refactoring.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              michal.severin Michal Severin [X] (Inactive)
              Reporter:
              cjr Chris Ridd
              Dev Assignee:
              Chris Ridd Chris Ridd
              QA Assignee:
              Michal Severin [X] Michal Severin [X] (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: