Skip to content

Commit

Permalink
tac_plus-ng/authen.c: fix PAM issue introduced with b3b9f38
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcJHuber committed Dec 11, 2024
1 parent a3a008a commit 2388805
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tac_plus-ng/authen.c
Original file line number Diff line number Diff line change
Expand Up @@ -1513,7 +1513,7 @@ static void do_pap(tac_session *session)
if (!resp)
resp = session->user_msg;

send_authen_reply(session, TAC_PLUS_AUTHEN_STATUS_FAIL, resp, 0, NULL, 0, 0);
send_authen_reply(session, (res == S_permit ) ? TAC_PLUS_AUTHEN_STATUS_PASS : TAC_PLUS_AUTHEN_STATUS_FAIL, resp, 0, NULL, 0, 0);
}

// This is proof-of-concept code for SSH key validation with minor protocol changes.
Expand Down

0 comments on commit 2388805

Please sign in to comment.