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

Incorrect length specified in PaswordUtil.splitCredentials

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0-M14
    • 2.0.0-M16
    • ldap
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: