Skip to content

Commit

Permalink
Merge pull request #10981 from Xeicker/fix_sssd_enable_smartcards
Browse files Browse the repository at this point in the history
Fix remediation of sssd_enable_smartcards
  • Loading branch information
jan-cerny authored Aug 11, 2023
2 parents 69ca2f3 + d512bac commit f32bd0c
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ umask $OLD_UMASK

{{% if product in ["fedora", "ol8", "ol9", "rhel8", "rhel9"] %}}
if [ -f /usr/bin/authselect ]; then
if authselect check; then
{{{ bash_enable_authselect_feature('with-smartcard') | indent(8) }}}
fi
{{{ bash_enable_authselect_feature('with-smartcard') | indent(4) }}}
else
{{{ bash_ensure_pam_module_option('/etc/pam.d/smartcard-auth', 'auth', 'sufficient', 'pam_sss.so', 'allow_missing_name', '', '') | indent(4) }}}
{{{ bash_ensure_pam_module_option('/etc/pam.d/system-auth', 'auth', '\[success=done authinfo_unavail=ignore ignore=ignore default=die\]', 'pam_sss.so', 'try_cert_auth', '', '') | indent(4) }}}
Expand Down

0 comments on commit f32bd0c

Please sign in to comment.