From: Iker Pedrosa Date: Mon, 20 Jul 2026 08:07:23 +0000 (+0200) Subject: tests/system/etc/login.defs: set ENCRYPT_METHOD SHA512 X-Git-Tag: 4.20.0~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7be03649bf24b048574778ec0f97f9a07a65ed56;p=thirdparty%2Fshadow.git tests/system/etc/login.defs: set ENCRYPT_METHOD SHA512 Commit 609bd9194174d ("Remove support for DES") commented out ENCRYPT_METHOD, which caused tests to use the container's default password hashing. Linux-PAM still defaults to DES when the encryption method isn't set in the configuration, but since the shadow code no longer supports DES, tests fail. Explicitly setting ENCRYPT_METHOD to SHA512 ensures tests use a supported modern hashing algorithm regardless of container defaults Fixes: 609bd9194174 (2026-07-17; "*/: Remove support for DES") Signed-off-by: Iker Pedrosa --- diff --git a/tests/system/etc/login.defs b/tests/system/etc/login.defs index 45afa2870..a94b6a651 100644 --- a/tests/system/etc/login.defs +++ b/tests/system/etc/login.defs @@ -301,7 +301,7 @@ CHFN_RESTRICT rwh # Note: If you use PAM, it is recommended to use a value consistent with # the PAM modules configuration. # -#ENCRYPT_METHOD SHA512 +ENCRYPT_METHOD SHA512 # # Only works if ENCRYPT_METHOD is set to SHA256 or SHA512.