← Commit list

7de0ab21d

Mario Abajo
Mario Abajo
2021-05-07
SUCCESS Duration: 155s

Subject

login: permit change expired password wit PAM

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

loginutils/login.c+3 -0
@@ -442,6 +442,9 @@ int login_main(int argc UNUSED_PARAM, char **argv)
}
/* check that the account is healthy */
pamret = pam_acct_mgmt(pamh, 0);
+ if (pamret == PAM_NEW_AUTHTOK_REQD) {
+ pamret = pam_chauthtok(pamh, PAM_CHANGE_EXPIRED_AUTHTOK);
+ }
if (pamret != PAM_SUCCESS) {
failed_msg = "acct_mgmt";
goto pam_auth_failed;