]> git.pld-linux.org Git - packages/pam.git/blob - no-force-pass-change.patch
Rel 9; don't force password change if using weaker pass hashes
[packages/pam.git] / no-force-pass-change.patch
1 --- Linux-PAM-1.4.0/modules/pam_unix/passverify.c~      2020-06-08 12:17:27.000000000 +0200
2 +++ Linux-PAM-1.4.0/modules/pam_unix/passverify.c       2023-03-09 13:12:17.643235815 +0100
3 @@ -289,7 +289,7 @@ PAMH_ARG_DECL(int check_shadow_expiry,
4                 D(("account expired"));
5                 return PAM_ACCT_EXPIRED;
6         }
7 -#if defined(CRYPT_CHECKSALT_AVAILABLE) && CRYPT_CHECKSALT_AVAILABLE
8 +#if 0 && defined(CRYPT_CHECKSALT_AVAILABLE) && CRYPT_CHECKSALT_AVAILABLE
9         if (spent->sp_lstchg == 0 ||
10             crypt_checksalt(spent->sp_pwdp) == CRYPT_SALT_METHOD_LEGACY ||
11             crypt_checksalt(spent->sp_pwdp) == CRYPT_SALT_TOO_CHEAP) {
This page took 0.077325 seconds and 3 git commands to generate.