[
https://issues.apache.org/jira/browse/SSHD-762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16125617#comment-16125617
]
Li Fangning commented on SSHD-762:
----------------------------------
I'm not sure how to do it, could you please help me more.
The attached code [^SshdKeyboardInteractiveSample.java] is my sample code, it
is expected to:
# if the (old) password equals to the username, it is considered as correct,
then prompted for a new password;
# Otherwise, the old password is considered as incorrect, then ask the user to
re-enter the old password.
Could you please help me modify the code to implement this feature?
Thank you very much.
> Keyboard Interactive Authentication only supports one-time interaction
> ----------------------------------------------------------------------
>
> Key: SSHD-762
> URL: https://issues.apache.org/jira/browse/SSHD-762
> Project: MINA SSHD
> Issue Type: Improvement
> Affects Versions: 1.6.0
> Reporter: Li Fangning
> Assignee: Goldstein Lyor
> Priority: Minor
> Fix For: 1.7.0
>
> Attachments: SshdKeyboardInteractiveSample.java
>
>
> The _org.apache.sshd.server.auth.keyboard.KeyboardInteractiveAuthenticator_
> interface only support one-time interaction with the client.
> Therefore, some features can not be achieved, such as the scenario of the
> expiration of user's password.
> See the second authentication example of [RFC
> 4256|https://www.ietf.org/rfc/rfc4256.txt].
> Regards
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)