Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

os_auth_pw_remember has no effect on Ubuntu/Debian #543

Open
Sebster7 opened this issue Jun 21, 2022 · 1 comment
Open

os_auth_pw_remember has no effect on Ubuntu/Debian #543

Sebster7 opened this issue Jun 21, 2022 · 1 comment

Comments

@Sebster7
Copy link

Sebster7 commented Jun 21, 2022

Describe the bug
The parameter os_auth_pw_remember has no effect on Ubuntu/Debian as far as I can tell, but this is not documented anywhere.

Expected behavior
os_auth_pw_remember should control how many old passwords are recorded and should prevent re-use of these passwords on all supported operating systems. This setting is required for compliance with various standards.

Actual behavior

Nothing happens.

Example Playbook

- hosts: all
  collections:
    - devsec.hardening
  roles:
    - devsec.hardening.os_hardening
    - devsec.hardening.ssh_hardening
  vars:
    os_auth_pw_max_age: 90
    os_auth_pw_min_age: 7
    os_auth_pw_warn_age: 28 # This is a parameter I added to my fork
    os_auth_retries: 5
    os_auth_lockout_time: 1800
    os_auth_pw_remember: 10
    os_auth_pam_sssd_enable: false
    os_auth_pam_passwdqc_enable: true
    os_auth_pam_passwdqc_options: 'min=disabled,disabled,disabled,16,15 max=255' # Ubuntu
    os_auth_pam_pwquality_options: 'min=disabled,disabled,disabled,16,15 max=255' # RHEL
    os_auth_timeout: 60
    sftp_enabled: true
    ssh_permit_tunnel: true
    ssh_allow_tcp_forwarding: 'yes'
    ssh_allow_agent_forwarding: true
    ssh_client_alive_interval: 300
    ssh_print_debian_banner: false
    ssh_print_motd: false
    ssh_print_pam_motd: true
    ssh_print_last_log: true

OS / Environment

Ubuntu 20.04.4 LTS

Ansible Version

Ansible AWX 19.5.1.dev66+gddc428532f.d20211221

Role Version

[6.3.0](https://github.com/dev-sec/ansible-os-hardening/tree/6.3.0) (2020-10-28)

Additional context
Preventing password re-use is required for compliance with various standards, e.g. PCI DSS v3.2.1.

@rndmh3ro
Copy link
Member

Support for Pam on Debian and Ubuntu is generally lacking, so a pr to add support would be nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants