You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Goldstein Lyor (JIRA)" <ji...@apache.org> on 2015/06/28 07:57:04 UTC
[jira] [Work started] (SSHD-504) UserAuthKeyboardInteractive fails
to match if prompt doesn't start password
[ https://issues.apache.org/jira/browse/SSHD-504?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on SSHD-504 started by Goldstein Lyor.
-------------------------------------------
> 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
> Assignee: Goldstein Lyor
>
> 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)