diff options
author | Mario Abajo <marioabajo@gmail.com> | 2021-05-06 02:10:47 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2021-05-07 12:28:00 +0200 |
commit | 7de0ab21d939a5a304157f75918d0318a95261a3 (patch) | |
tree | 6a3e0132f57e05a84093f4a74ad259c63c0f15c6 | |
parent | ac4a0b3be77f2b4280fd95849a0259e1351eeb43 (diff) | |
download | busybox-w32-7de0ab21d939a5a304157f75918d0318a95261a3.tar.gz busybox-w32-7de0ab21d939a5a304157f75918d0318a95261a3.tar.bz2 busybox-w32-7de0ab21d939a5a304157f75918d0318a95261a3.zip |
login: permit change expired password wit PAM
Signed-off-by: Mario Abajo <marioabajo@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | loginutils/login.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/loginutils/login.c b/loginutils/login.c index 66ac7cf4c..ce87e318a 100644 --- a/loginutils/login.c +++ b/loginutils/login.c | |||
@@ -442,6 +442,9 @@ int login_main(int argc UNUSED_PARAM, char **argv) | |||
442 | } | 442 | } |
443 | /* check that the account is healthy */ | 443 | /* check that the account is healthy */ |
444 | pamret = pam_acct_mgmt(pamh, 0); | 444 | pamret = pam_acct_mgmt(pamh, 0); |
445 | if (pamret == PAM_NEW_AUTHTOK_REQD) { | ||
446 | pamret = pam_chauthtok(pamh, PAM_CHANGE_EXPIRED_AUTHTOK); | ||
447 | } | ||
445 | if (pamret != PAM_SUCCESS) { | 448 | if (pamret != PAM_SUCCESS) { |
446 | failed_msg = "acct_mgmt"; | 449 | failed_msg = "acct_mgmt"; |
447 | goto pam_auth_failed; | 450 | goto pam_auth_failed; |