mirror of
https://github.com/clearml/dropbear
synced 2025-02-07 05:17:28 +00:00
Fix for issue successfull login of disabled user (#78)
This commit introduces fix for scenario: 1. Root login disabled on dropbear 2. PAM authentication model enabled While login as root user, after prompt for password user is being notified about login failrue, but after second attempt of prompt for password within same session, login becames succesfull. Signed-off-by: Pawel Rapkiewicz <pawel.rapkiewicz@gmail.com>
This commit is contained in:
parent
b016ebedfd
commit
a0aa274981
@ -275,6 +275,7 @@ void svr_auth_pam(int valid_user) {
|
||||
/* PAM auth succeeded but the username isn't allowed in for another reason
|
||||
(checkusername() failed) */
|
||||
send_msg_userauth_failure(0, 1);
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
/* successful authentication */
|
||||
|
Loading…
Reference in New Issue
Block a user