diff options
author | Eero Häkkinen <Eero+git@xn--Hkkinen-5wa.fi> | 2023-09-16 00:55:08 +0300 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2024-03-30 16:48:04 +1100 |
commit | c2c0bdd3e96b3ef66d77fccb85ff4962dc76caf0 (patch) | |
tree | 07ddc485d48bde908f6ac217774a6f61b88e9476 | |
parent | 02c5ad23124ae801cf248d99ea5068fc4331ca01 (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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |