summaryrefslogtreecommitdiffstats
path: root/tests/config.sh
diff options
context:
space:
mode:
authorJan Pazdziora <jpazdziora@redhat.com>2022-01-21 21:01:08 +0100
committerJan Pazdziora <jpazdziora@redhat.com>2022-01-21 21:01:42 +0100
commit7b12978039208e4c59c294baeee877b4d122d747 (patch)
tree12be451ea016e61bd94f4151592a60e91a19d7fb /tests/config.sh
parentafc59eba4abb2f05bd935b585b60ee2aa4cf2115 (diff)
downloadmod_authnz_pam-7b12978039208e4c59c294baeee877b4d122d747.tar.gz
mod_authnz_pam-7b12978039208e4c59c294baeee877b4d122d747.tar.xz
mod_authnz_pam-7b12978039208e4c59c294baeee877b4d122d747.zip
Add testing of AuthPAMExpiredRedirect, using pam_unix and sp_max in shadow.
The chmod g+r /etc/shadow approach is obviously only for testing.
Diffstat (limited to 'tests/config.sh')
-rwxr-xr-xtests/config.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/config.sh b/tests/config.sh
index 131767e..255c0dd 100755
--- a/tests/config.sh
+++ b/tests/config.sh
@@ -11,6 +11,7 @@ cp -p tests/auth.cgi /var/www/cgi-bin/auth.cgi
cp -p tests/pam-exec /usr/bin/pam-exec
cp tests/pam-web /etc/pam.d/web
cp tests/pam-web /etc/pam.d/web2
+cp tests/pam-webl /etc/pam.d/webl
chmod a+x /var/log/httpd
touch /var/log/httpd/pam_exec.log
chown apache /var/log/httpd/pam_exec.log
@@ -19,3 +20,7 @@ if rpm -ql httpd | grep mod_authn_socache ; then
cat tests/auth-socache.conf >> /etc/httpd/conf.d/auth.conf
fi
htpasswd -bc /etc/htpasswd alice Tajnost
+useradd user1
+echo user1:heslo1 | chpasswd
+chgrp apache /etc/shadow
+chmod g+r /etc/shadow