Skip to content

Commit

Permalink
Add tests to OL8 sssd rules
Browse files Browse the repository at this point in the history
These test are to take int account files inside /etc/sssd/conf.d/

Signed-off-by: Edgar Aguilar <[email protected]>
  • Loading branch information
Xeicker committed Feb 1, 2024
1 parent 648a67f commit 8a7bcc0
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash
# packages = authselect,sssd
# platform = multi_platform_fedora,Oracle Linux 8,Oracle Linux 9,Red Hat Enterprise Linux 8,Red Hat Enterprise Linux 9

SSSD_FILE="/etc/sssd/conf.d/unused.conf"
echo "[pam]" > $SSSD_FILE
echo "pam_cert_auth = True" >> $SSSD_FILE

authselect select sssd --force
authselect enable-feature with-smartcard
authselect apply-changes
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash
# packages = authselect,sssd
# platform = multi_platform_fedora,Oracle Linux 8,Oracle Linux 9,Red Hat Enterprise Linux 8,Red Hat Enterprise Linux 9

SSSD_FILE="/etc/sssd/conf.d/unused.conf"
echo "[pam]" > $SSSD_FILE
echo "pam_cert_auth = False" >> $SSSD_FILE

authselect select sssd --force
authselect enable-feature with-smartcard
authselect apply-changes
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

source common.sh

SSSD_CONF_D_FILE="/etc/sssd/conf.d/unused.conf"

echo -e "[pam]\noffline_credentials_expiration = 1" >> $SSSD_CONF_D_FILE

echo -e "[domain/EXAMPLE]\ncache_credentials = true" >> $SSSD_CONF
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

source common.sh

SSSD_CONF_D_FILE="/etc/sssd/conf.d/unused.conf"

echo -e "[pam]\noffline_credentials_expiration = 0" >> $SSSD_CONF_D_FILE

echo -e "[domain/EXAMPLE]\ncache_credentials = true" >> $SSSD_CONF

0 comments on commit 8a7bcc0

Please sign in to comment.