Skip to content

Commit 56f5eb4

Browse files
Use pam_options template with bash turned off
1 parent 845f5c3 commit 56f5eb4

2 files changed

Lines changed: 7 additions & 59 deletions

File tree

  • linux_os/guide/system/accounts/accounts-pam/locking_out_password_attempts/accounts_password_pam_pwhistory_remember

linux_os/guide/system/accounts/accounts-pam/locking_out_password_attempts/accounts_password_pam_pwhistory_remember/oval/shared.xml

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

linux_os/guide/system/accounts/accounts-pam/locking_out_password_attempts/accounts_password_pam_pwhistory_remember/rule.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,20 @@ ocil: |-
4949
5050
platform: package[pam]
5151

52-
{{% if 'ubuntu' not in product or product == 'ubuntu2004' %}}
5352
template:
5453
name: pam_options
5554
vars:
5655
path: /etc/pam.d/common-password
5756
type: password
5857
control_flag: requisite
5958
module: pam_pwhistory.so
59+
{{% if 'ubuntu' in product and product != 'ubuntu2004' %}}
60+
arguments:
61+
- variable: remember
62+
operation: greater than or equal
63+
backends:
64+
- bash: "off"
65+
{{% else %}}
6066
arguments:
6167
- variable: remember
6268
operation: greater than or equal

0 commit comments

Comments
 (0)