Skip to content

Commit

Permalink
Use template parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
alanmcanonical committed Dec 17, 2024
1 parent dedc5a7 commit 3b8cf2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# platform = multi_platform_ubuntu

{{{ bash_pam_pwhistory_enable() }}}
{{{ bash_pam_pwhistory_enable('cac_pwhistory','requisite') }}}
4 changes: 2 additions & 2 deletions shared/macros/10-bash.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -983,7 +983,7 @@ if [ -f /usr/bin/authselect ]; then
fi
else
{{% if 'ubuntu' in product %}}
conf_name=cac_pwhistory
conf_name={{{ pam_file }}}
conf_path="/usr/share/pam-configs"

if [ ! -f "$conf_path"/"$conf_name" ]; then
Expand All @@ -992,7 +992,7 @@ Name: pwhistory password history checking
Default: yes
Priority: 1024
Password-Type: Primary
Password: requisite pam_pwhistory.so remember=24 enforce_for_root try_first_pass use_authtok
Password: {{{ control }}} pam_pwhistory.so remember=24 enforce_for_root try_first_pass use_authtok
EOF
fi

Expand Down

0 comments on commit 3b8cf2d

Please sign in to comment.