-
Notifications
You must be signed in to change notification settings - Fork 706
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
These test are to take int account files inside /etc/sssd/conf.d/ Signed-off-by: Edgar Aguilar <[email protected]>
- Loading branch information
Showing
4 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
...de/services/sssd/sssd_enable_smartcards/tests/authselect_smartcard_enabled_conf_d.pass.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
11 changes: 11 additions & 0 deletions
11
...services/sssd/sssd_enable_smartcards/tests/authselect_sssd_parameter_false_conf_d.fail.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
9 changes: 9 additions & 0 deletions
9
linux_os/guide/services/sssd/sssd_offline_cred_expiration/tests/correct_value_conf_d.pass.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
9 changes: 9 additions & 0 deletions
9
linux_os/guide/services/sssd/sssd_offline_cred_expiration/tests/wrong_value_conf_d.fail.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |