Skip to content

Commit

Permalink
Merge pull request #9720 from dodys/libpam-pkcs11
Browse files Browse the repository at this point in the history
install_smartcard_packages: Add Ubuntu specific remediation
  • Loading branch information
jan-cerny committed Oct 21, 2022
2 parents dead445 + 526285d commit 0091a36
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# platform = multi_platform_ubuntu

DEBIAN_FRONTEND=noninteractive apt-get install -y "libpam-pkcs11"

if [ ! -f /etc/pam_pkcs11/pam_pkcs11.conf ]; then
cp /usr/share/doc/libpam-pkcs11/examples/pam_pkcs11.conf.example /etc/pam_pkcs11/pam_pkcs11.conf
fi

sed -i -e 's/debug = true/debug = false/g' -e 's|module = /usr/lib/opensc-pkcs11|module = /usr/lib/x86_64-linux-gnu/pkcs11/opensc-pkcs11|' /etc/pam_pkcs11/pam_pkcs11.conf

0 comments on commit 0091a36

Please sign in to comment.