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)

Reply via email to