mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
Fix pam echo not displayed via ssh
Necessary because of OpenSSH bug https://bugzilla.mindrot.org/show_bug.cgi?id=2876 - PAM_TEXT_INFO and PAM_ERROR_MSG conversation not honoured during PAM authentication Signed-off-by: David Mulder <dmulder@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
This commit is contained in:
parent
a8491e83b4
commit
8a75cb0e20
@ -376,6 +376,12 @@ impl PamHooks for PamHimmelblau {
|
||||
}
|
||||
}
|
||||
|
||||
// Necessary because of OpenSSH bug
|
||||
// https://bugzilla.mindrot.org/show_bug.cgi?id=2876 -
|
||||
// PAM_TEXT_INFO and PAM_ERROR_MSG conversation not
|
||||
// honoured during PAM authentication
|
||||
let _ = conv.send(PAM_PROMPT_ECHO_OFF, "Press enter to continue");
|
||||
|
||||
let mut poll_attempt = 0;
|
||||
loop {
|
||||
thread::sleep(Duration::from_secs(polling_interval.into()));
|
||||
|
Loading…
Reference in New Issue
Block a user