File: auth.cgi

package info (click to toggle)
libapache2-mod-authnz-pam 1.2.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 160 kB
  • sloc: ansic: 315; sh: 155; makefile: 8
file content (10 lines) | stat: -rwxr-xr-x 168 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
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