Uploaded image for project: 'Directory ApacheDS'
  1. Directory ApacheDS
  2. DIRSERVER-1884

Incorrect length specified in PaswordUtil.splitCredentials

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-M14
    • Fix Version/s: 2.0.0-M16
    • Component/s: ldap
    • Labels:
      None

      Description

      Digging through the source i ran into this:

      PasswordUtil.java
                  case HASH_METHOD_SHA384:
                  case HASH_METHOD_SSHA384:
                      return getCredentials( credentials, algoLength, SHA512_LENGTH, encryptionMethod );
      
                  case HASH_METHOD_SHA512:
                  case HASH_METHOD_SSHA512:
                      return getCredentials( credentials, algoLength, SHA512_LENGTH, encryptionMethod );
      

      I assume sinc there is a variable defind for SHA384_LENGTH, line 412 should probably read:

                      return getCredentials( credentials, algoLength, SHA384_LENGTH, encryptionMethod );
      

        Attachments

          Activity

            People

            • Assignee:
              akiran Kiran Ayyagari
              Reporter:
              ltheisen@mitre.org lucas theisen
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: