diff --git a/templates/etc/security/pwquality.conf.d/50-pwcomplexity.conf.j2 b/templates/etc/security/pwquality.conf.d/50-pwcomplexity.conf.j2 index 0c12e7a..ecf6e58 100644 --- a/templates/etc/security/pwquality.conf.d/50-pwcomplexity.conf.j2 +++ b/templates/etc/security/pwquality.conf.d/50-pwcomplexity.conf.j2 @@ -1,7 +1,11 @@ # CIS Configurations # 5.3.3.2.3 Ensure password complexity is configured +{% if rhel9cis_passwd_complex_option == minclass %} minclass = {{ rhel9cis_passwd_minclass }} +{ %endif %} +{% if rhel9cis_passwd_complex_option == credits %} dcredit = {{rhel9cis_passwd_dcredit }} ucredit = {{ rhel9cis_passwd_ucredit }} ocredit = {{ rhel9cis_passwd_ocredit }} lcredit = {{ rhel9cis_passwd_lcredit }} +{% endif %}