summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEero Häkkinen <Eero+git@xn--Hkkinen-5wa.fi>2023-09-16 00:55:08 +0300
committerDamien Miller <djm@mindrot.org>2024-03-30 16:48:04 +1100
commitc2c0bdd3e96b3ef66d77fccb85ff4962dc76caf0 (patch)
tree07ddc485d48bde908f6ac217774a6f61b88e9476
parent02c5ad23124ae801cf248d99ea5068fc4331ca01 (diff)
Expose SSH_AUTH_INFO_0 always to PAM auth modules.
This changes SSH_AUTH_INFO_0 to be exposed to PAM auth modules also when a password authentication method is in use and not only when a keyboard-interactive authentication method is in use.
-rw-r--r--auth-pam.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/auth-pam.c b/auth-pam.c
index b49d415e..e143304e 100644
--- a/auth-pam.c
+++ b/auth-pam.c
@@ -1375,6 +1375,8 @@ sshpam_auth_passwd(Authctxt *authctxt, const char *password)
fatal("PAM: %s: failed to set PAM_CONV: %s", __func__,
pam_strerror(sshpam_handle, sshpam_err));
+ expose_authinfo(__func__);
+
sshpam_err = pam_authenticate(sshpam_handle, flags);
sshpam_password = NULL;
free(fake);