mirror of
https://github.com/dev-sec/ansible-collection-hardening
synced 2024-11-10 09:14:18 +00:00
Allow configuration of password remember in pam (#467)
* Add Configuration of password remember and set default to 60 see Telekom 2021.07-01 SoC 3.01 Req 25 and SoC 3.65 Req46 Signed-off-by: Maik Stuebner <Maik.Stuebner@t-systems.com> * set default for password remember back to 5 Signed-off-by: Maik Stuebner <Maik.Stuebner@t-systems.com> * readme default for password remember back to 5 Signed-off-by: Maik Stuebner <Maik.Stuebner@t-systems.com>
This commit is contained in:
parent
488441a7dc
commit
714a34fa55
3 changed files with 5 additions and 1 deletions
|
@ -106,6 +106,9 @@ We know that this is the case on Raspberry Pi.
|
|||
- `os_auth_pw_min_age`
|
||||
- Default: `7`
|
||||
- Description: minimum password age (before allowing any other password change).
|
||||
- `os_auth_pw_remember`
|
||||
- Default: `5`
|
||||
- Description: how many used passwords are record.
|
||||
- `os_auth_retries`
|
||||
- Default: `5`
|
||||
- Description: the maximum number of authentication attempts, before the account is locked for some time.
|
||||
|
|
|
@ -3,6 +3,7 @@ os_desktop_enable: false
|
|||
os_env_extra_user_paths: []
|
||||
os_auth_pw_max_age: 60
|
||||
os_auth_pw_min_age: 7 # Discourage password cycling
|
||||
os_auth_pw_remember: 5 # Specify how many used passwords are record
|
||||
os_auth_retries: 5
|
||||
os_auth_lockout_time: 600 # Seconds (600 = 10min)
|
||||
os_auth_timeout: 60
|
||||
|
|
|
@ -36,7 +36,7 @@ account required pam_permit.so
|
|||
password requisite pam_pwquality.so {{ os_auth_pam_pwquality_options }}
|
||||
{% endif %}
|
||||
{# NSA 2.3.3.6 Limit Password Reuse #}
|
||||
password requisite pam_pwhistory.so remember=5 use_authtok
|
||||
password requisite pam_pwhistory.so remember={{ os_auth_pw_remember }} use_authtok
|
||||
{# NSA 2.3.3.5 Upgrade Password Hashing Algorithm to SHA-512 #}
|
||||
password sufficient pam_unix.so sha512 shadow nullok try_first_pass use_authtok rounds={{ os_sha_crypt_min_rounds }}
|
||||
{% if (os_auth_pam_sssd_enable | bool) %}
|
||||
|
|
Loading…
Reference in a new issue