Mercurial > dropbear
changeset 1629:258b57b208ae
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 <[email protected]>
author | vincentto13 <33652988+vincentto13@users.noreply.github.com> |
---|---|
date | Wed, 20 Mar 2019 15:03:40 +0100 |
parents | ff3f274ea56c |
children | 9579377b5f8b |
files | svr-authpam.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/svr-authpam.c Wed Mar 20 08:56:19 2019 -0500 +++ b/svr-authpam.c Wed Mar 20 15:03:40 2019 +0100 @@ -275,6 +275,7 @@ /* 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 */