summaryrefslogtreecommitdiffstats
path: root/tests/auth.cgi
diff options
context:
space:
mode:
authorJan Pazdziora <jpazdziora@redhat.com>2018-07-16 23:53:42 +0200
committerJan Pazdziora <jpazdziora@redhat.com>2018-07-17 00:01:50 +0200
commit02a147cf6bf9ec8c1b648e97307129333e84a051 (patch)
tree9360a238dd09059a9990a531e2c7aedc1440ea88 /tests/auth.cgi
parent54b7e8664da55d0bdd68725b2a783888fda914fe (diff)
downloadmod_authnz_pam-02a147cf6bf9ec8c1b648e97307129333e84a051.tar.gz
mod_authnz_pam-02a147cf6bf9ec8c1b648e97307129333e84a051.tar.xz
mod_authnz_pam-02a147cf6bf9ec8c1b648e97307129333e84a051.zip
Test Require pam-account and AuthBasicProvider PAM in CI.
Diffstat (limited to 'tests/auth.cgi')
-rwxr-xr-xtests/auth.cgi10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/auth.cgi b/tests/auth.cgi
new file mode 100755
index 0000000..3f4be25
--- /dev/null
+++ b/tests/auth.cgi
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+echo "Content-Type: text/plain"
+echo "Pragma: no-cache"
+echo
+if [ -n "$REMOTE_USER" ] ; then
+ echo "User $REMOTE_USER."
+else
+ echo "Not authenticated."
+fi