diff options
author | Jan Pazdziora <jpazdziora@redhat.com> | 2018-07-17 10:04:07 +0200 |
---|---|---|
committer | Jan Pazdziora <jpazdziora@redhat.com> | 2018-07-17 19:24:53 +0200 |
commit | 9236628dbac1c2d99d752731e8391fa1307f2b0c (patch) | |
tree | 646d6041f3a89360d07ad584b138a5f1055464df /tests/run.sh | |
parent | 679b087142484c113c1de863a7fb956354dc43a2 (diff) | |
download | mod_authnz_pam-9236628dbac1c2d99d752731e8391fa1307f2b0c.tar.gz mod_authnz_pam-9236628dbac1c2d99d752731e8391fa1307f2b0c.tar.xz mod_authnz_pam-9236628dbac1c2d99d752731e8391fa1307f2b0c.zip |
On Apache 2.4, test AuthBasicProvider socache PAM + AuthnCacheProvideFor PAM.
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 |