Skip to content

Commit 61106d7

Browse files
Merge pull request #14607 from teacup-on-rockingchair/sle16_pco_dss_password_rules_patches
Sle16 pci dss password rules patches
2 parents 4485e06 + af81647 commit 61106d7

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

linux_os/guide/system/accounts/accounts-pam/set_password_hashing_algorithm/set_password_hashing_algorithm_commonauth/bash/shared.sh

Lines changed: 0 additions & 3 deletions
This file was deleted.

linux_os/guide/system/accounts/accounts-pam/set_password_hashing_algorithm/set_password_hashing_algorithm_commonauth/rule.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,11 @@ template:
5656
vars:
5757
path: /etc/pam.d/common-auth
5858
type: auth
59+
{{% if 'sle' in product %}}
60+
control_flag: sufficient
61+
{{% else %}}
5962
control_flag: required
63+
{{% endif %}}
6064
module: pam_unix.so
6165
arguments:
6266
- argument: sha512

products/sle16/profiles/pci-dss-4.profile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ selections:
2727
- var_multiple_time_servers=suse
2828
- var_multiple_time_pools=suse
2929
- var_accounts_tmout=15_min
30+
- var_accounts_passwords_pam_faillock_dir=run
3031
- audit_rules_enable_syscall_auditing
3132
- '!ntpd_specify_multiple_servers'
3233
- '!ntpd_specify_remote_server'
@@ -36,25 +37,20 @@ selections:
3637
- '!package_libreswan_installed'
3738
- '!use_pam_wheel_for_su'
3839
- '!aide_periodic_cron_checking'
39-
- '!accounts_password_pam_dcredit'
4040
- '!accounts_password_pam_pwhistory_remember_system_auth'
4141
- '!sysctl_kernel_core_pattern'
4242
- '!configure_firewalld_ports'
4343
- '!accounts_passwords_pam_tally2'
4444
- '!accounts_passwords_pam_tally2_unlock_time'
4545
- '!audit_rules_login_events_tallylog'
46-
- '!accounts_passwords_pam_faillock_deny'
4746
- '!file_owner_user_cfg'
48-
- '!accounts_passwords_pam_faillock_unlock_time'
4947
- '!ensure_redhat_gpgkey_installed'
5048
- '!package_sequoia-sq_installed'
5149
- '!ensure_almalinux_gpgkey_installed'
5250
- '!firewalld_loopback_traffic_restricted'
53-
- '!accounts_password_pam_lcredit'
5451
- '!file_group_ownership_var_log_audit'
5552
- '!package_ftp_removed'
5653
- '!gnome_gdm_disable_guest_login'
57-
- '!accounts_password_pam_minlen'
5854
- '!no_password_auth_for_systemaccounts'
5955
- '!file_groupowner_user_cfg'
6056
- '!ensure_root_password_configured'
@@ -83,3 +79,8 @@ selections:
8379
- '!set_ipv6_loopback_traffic'
8480
- '!set_loopback_traffic'
8581
- '!nftables_ensure_default_deny_policy'
82+
- '!cracklib_accounts_password_pam_dcredit'
83+
- '!cracklib_accounts_password_pam_lcredit'
84+
- '!cracklib_accounts_password_pam_minlen'
85+
- '!cracklib_accounts_password_pam_retry'
86+
- 'accounts_password_pam_retry'

shared/macros/10-bash.jinja

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ fi
854854
bash_ensure_pam_module_configuration(
855855
'/etc/pam.d/common-auth',
856856
'auth',
857-
'\[success=1 default=ignore\]',
857+
'sufficient',
858858
'pam_unix.so',
859859
'',
860860
'',
@@ -2766,7 +2766,7 @@ This macro creates a Bash conditional which checks the system architecture in /p
27662766

27672767

27682768
{{#
2769-
Set a sshd configuration parameter to a value for system with default configuration in /usr subdir
2769+
Set a sshd configuration parameter to a value for system with default configuration in /usr subdir
27702770

27712771
:parameter parameter: Parameter to set
27722772
:type parameter: str

0 commit comments

Comments
 (0)