Review Request 113602: kioslave/sftp: Fix user input being ignored in kbdint prompt

Samu Kallio samu.kallio at aberdeencloud.com
Mon Nov 4 15:20:04 GMT 2013


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/113602/
-----------------------------------------------------------

Review request for KDE Runtime.


Repository: kde-runtime


Description
-------

When authenticateKeyboardInteractive() handles an echo-on prompt, the answer from the username field is saved into infoKbdInt, which is then ignored and info.username is sent instead. As such, all echo-on prompts receive the original user name as input.


Diffs
-----

  kioslave/sftp/kio_sftp.cpp 37b18107e4ea926dd964eeca74adf0b9032583f3 

Diff: http://git.reviewboard.kde.org/r/113602/diff/


Testing
-------

Logging into an SSH-server (sftp://bar@127.0.0.1/) with keyboard-interactive authentication and a custom PAM-module presenting one echo-on prompt and one echo-off prompt.
Before the patch, the echo-on prompt always receives the original username (bar).
After the patch, the echo-on prompt receives the value given in the username input field of the prompt dialog.


Thanks,

Samu Kallio

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20131104/bc21bd19/attachment.htm>


More information about the kde-core-devel mailing list