summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvincentto13 <33652988+vincentto13@users.noreply.github.com>2019-03-20 15:03:40 +0100
committervincentto13 <33652988+vincentto13@users.noreply.github.com>2019-03-20 15:03:40 +0100
commit0ebc05a31bd1f3a21960dee6f296fe2e5103ec77 (patch)
treeeeb5a963609547389d5bcfe63eb1554cdfc303fd
parent638288c0b729c097e22177de74307fe32fedac00 (diff)
downloaddropbear-0ebc05a31bd1f3a21960dee6f296fe2e5103ec77.tar.gz
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>
-rw-r--r--svr-authpam.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/svr-authpam.c b/svr-authpam.c
index d201bc9..e236db4 100644
--- a/svr-authpam.c
+++ b/svr-authpam.c
@@ -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 */