diff options
Diffstat (limited to 'tests/run.sh')
-rwxr-xr-x | tests/run.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/run.sh b/tests/run.sh index 6986a30..6b5ea4e 100755 --- a/tests/run.sh +++ b/tests/run.sh @@ -26,3 +26,16 @@ echo Secret > /etc/pam-auth/bob curl -u bob:Secret -s http://localhost/authn | tee /dev/stderr | grep 'User bob' echo Secret2 > /etc/pam-auth/bob curl -u bob:Secret -s -D /dev/stdout -o /dev/null http://localhost/authn | tee /dev/stderr | grep 401 + +if rpm -ql httpd | grep mod_authn_socache ; then + echo "Testing AuthBasicProvider socache PAM + AuthnCacheProvideFor PAM" + curl -s -D /dev/stdout -o /dev/null http://localhost/authn | tee /dev/stderr | grep 401 + curl -u bob:Secret -s -D /dev/stdout -o /dev/null http://localhost/authn-cached | tee /dev/stderr | grep 401 + echo Secret > /etc/pam-auth/bob + curl -u bob:Secret -s http://localhost/authn-cached | tee /dev/stderr | grep 'User bob' + echo Secret2 > /etc/pam-auth/bob + curl -u bob:Secret -s -D /dev/stdout -o /dev/null http://localhost/authn | tee /dev/stderr | grep 401 + curl -u bob:Secret -s http://localhost/authn-cached | tee /dev/stderr | grep 'User bob' + sleep 11 + curl -u bob:Secret -s -D /dev/stdout -o /dev/null http://localhost/authn-cached | tee /dev/stderr | grep 401 +fi |