From ebb5f8e930b7c77ceac6c26250540c70ced77015 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A5=D0=B8=D1=80=D0=B5=D1=86=D0=BA=D0=B8=D0=B9=20=D0=9C?= =?UTF-8?q?=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= Date: Mon, 26 Apr 2021 17:26:01 +0300 Subject: [PATCH] Fix pam cracklib passwdqc --- profile/unix/etc/pam.d/system-auth | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/profile/unix/etc/pam.d/system-auth b/profile/unix/etc/pam.d/system-auth index 96ed33a..2273e14 100644 --- a/profile/unix/etc/pam.d/system-auth +++ b/profile/unix/etc/pam.d/system-auth @@ -9,8 +9,13 @@ auth required pam_deny.so account required pam_unix.so account sufficient pam_ldap.so - + +#?pkg(cracklib)!=# password required pam_cracklib.so difok=2 minlen=8 dcredit=2 ocredit=2 try_first_pass retry=3 +#pkg# +#?pkg(passwdqc)!=# +password required pam_passwdqc.so min=8,8,8,8,8 retry=3 +#pkg# password sufficient pam_unix.so try_first_pass use_authtok nullok md5 shadow password sufficient pam_ldap.so