From 7b12978039208e4c59c294baeee877b4d122d747 Mon Sep 17 00:00:00 2001 From: Jan Pazdziora Date: Fri, 21 Jan 2022 21:01:08 +0100 Subject: Add testing of AuthPAMExpiredRedirect, using pam_unix and sp_max in shadow. The chmod g+r /etc/shadow approach is obviously only for testing. --- tests/config.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/config.sh') 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 -- cgit