Uploaded image for project: 'MINA SSHD'
  1. MINA SSHD
  2. SSHD-300

Double public key authentication

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.10.1
    • 0.11.0
    • None

    Description

      PublickeyAuthenticator.authenticate() method is called twice, even though the first call of this method already authenticated the user and returned true.

      This is a preformance issue, as server may need to hit database/caches to retrieve the list of public key(s) for the user to preform the check against.

      Or the authenticate() implementation needs to be adjusted to preform the check that the user was alreay authenticated.

      Reproducer patch is attaced. The problem only occurs when the test is called from open SSH client. Own SSHD's client works as expected.

      To reproduce, start the attached unit test as Java application, and issue the command:

      ssh localhost -p 29418 -l joe

      [1] https://gerrit-review.googlesource.com/55193

      Attachments

        Activity

          People

            gnodet Guillaume Nodet
            davido2 David Ostrovsky
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: