summaryrefslogtreecommitdiffstats
path: root/tests/auth.cgi
diff options
context:
space:
mode:
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