summaryrefslogtreecommitdiffstats
path: root/tests/pam-exec
diff options
context:
space:
mode:
authorJan Pazdziora <jpazdziora@redhat.com>2020-07-09 14:12:20 +0200
committerJan Pazdziora <jpazdziora@redhat.com>2020-07-09 16:19:25 +0200
commit025f62adcd1fe0d74264f7ee28efc757b75d5152 (patch)
tree87b9dd1bfa2eedb4935b0f8c33b8c705dfcd6e0a /tests/pam-exec
parent622996a9a7d462cdb51cd2a2c5ecd3b00bb48b85 (diff)
downloadmod_authnz_pam-025f62adcd1fe0d74264f7ee28efc757b75d5152.tar.gz
mod_authnz_pam-025f62adcd1fe0d74264f7ee28efc757b75d5152.tar.xz
mod_authnz_pam-025f62adcd1fe0d74264f7ee28efc757b75d5152.zip
Clarify account behaviour with AuthBasicProvider and interaction with Require pam-account.
Diffstat (limited to 'tests/pam-exec')
-rwxr-xr-xtests/pam-exec12
1 files changed, 10 insertions, 2 deletions
diff --git a/tests/pam-exec b/tests/pam-exec
index 81b3d12..4d7c114 100755
--- a/tests/pam-exec
+++ b/tests/pam-exec
@@ -3,7 +3,11 @@
echo "$0: $PAM_TYPE $PAM_USER"
if [ "$PAM_TYPE" == 'auth' ] ; then
- PAM_FILE="/etc/pam-auth/$PAM_USER"
+ if [ "$PAM_SERVICE" = 'web2' ] ; then
+ PAM_FILE="/etc/pam-auth2/$PAM_USER"
+ else
+ PAM_FILE="/etc/pam-auth/$PAM_USER"
+ fi
if ! [ -f $PAM_FILE ] ; then
echo "No [$PAM_FILE] for user [$PAM_USER]" >&2
exit 2
@@ -20,7 +24,11 @@ if [ "$PAM_TYPE" == 'auth' ] ; then
fi
if [ "$PAM_TYPE" == 'account' ] ; then
- PAM_FILE="/etc/pam-account/$PAM_USER"
+ if [ "$PAM_SERVICE" = 'web2' ] ; then
+ PAM_FILE="/etc/pam-account2/$PAM_USER"
+ else
+ PAM_FILE="/etc/pam-account/$PAM_USER"
+ fi
if ! [ -f $PAM_FILE ] ; then
echo "No [$PAM_FILE] for user [$PAM_USER]" >&2
exit 2