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

Login possible using password hash

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0-RC1
    • 2.0.0-M1
    • ldap
    • None

    Description

      from IRC:

      file: core/src/main/java/org/apache/directory/server/core/authn/SimpleAuthenticator.java
      method: public LdapPrincipal authenticate( BindOperationContext bindContext )

      you can see a code block starting with:

      // Short circuit for PLAIN TEXT passwords : we compare the byte array directly
      // Are the passwords equal ?
      if ( Arrays.equals( credentials, storedPassword ) )

      i think you should move this block to the algorithm == null case some lines below

      the test case would be:
      1) store a password with any hashed algorithm.
      2) base64 decode it.
      3) use the result to bind to the ldap server

      Attachments

        Activity

          People

            akiran Kiran Ayyagari
            obi Andreas Oberritter
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: