{{% if product in [ "sle12", "sle15" ] %}} {{%- set accounts_password_pam_unix_remember_file = '/etc/pam.d/common-password' -%}} {{% else %}} {{%- set accounts_password_pam_unix_remember_file = '/etc/pam.d/system-auth' -%}} {{% endif %}}

{{{ oval_metadata("The passwords to remember should be set correctly.") }}}
{{{ accounts_password_pam_unix_remember_file }}}
1
{{{ accounts_password_pam_unix_remember_file }}}
1
^/etc/security/pwhistory.conf$
1
^\s*password\s+(?:(?:requisite)|(?:required))\s+pam_pwhistory\.so.*$
^\s*password\b.*\bpam_pwhistory\.so\b.*\bremember=([0-9]*).*$
^\s*remember\s*=\s*([0-9]+)
/etc/pam.d/system-auth
^\s*password\s+(?:(?:sufficient)|(?:required))\s+pam_unix\.so.*remember=([0-9]*).*$
1