You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Matt Kusnierz (JIRA)" <ji...@apache.org> on 2015/06/26 14:31:04 UTC

[jira] [Created] (SSHD-504) UserAuthKeyboardInteractive fails to match if prompt doesn't start password

Matt Kusnierz created SSHD-504:
----------------------------------

             Summary: UserAuthKeyboardInteractive fails to match if prompt doesn't start password
                 Key: SSHD-504
                 URL: https://issues.apache.org/jira/browse/SSHD-504
             Project: MINA SSHD
          Issue Type: Bug
    Affects Versions: 0.13.0
            Reporter: Matt Kusnierz


This method: org.apache.sshd.client.auth.UserAuthKeyboardInteractive.process(Buffer)
line 116
contains a check on the prompt:
prompt[0].toLowerCase().startsWith("password:")

This doesn't always work. My server's for instance prompt "{username}'s password:" and so this check fails.

Maybe an endsWith "password:" would work better? or a contains password check?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)