summaryrefslogtreecommitdiffstats
path: root/tests/auth.conf
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auth.conf')
-rw-r--r--tests/auth.conf19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/auth.conf b/tests/auth.conf
new file mode 100644
index 0000000..25975c5
--- /dev/null
+++ b/tests/auth.conf
@@ -0,0 +1,19 @@
+LoadModule authnz_pam_module modules/mod_authnz_pam.so
+
+ScriptAlias /authz /var/www/cgi-bin/auth.cgi
+<Location /authz>
+ AuthType Basic
+ AuthName "private area"
+ AuthBasicProvider file
+ AuthUserFile /etc/htpasswd
+ Require pam-account web
+</Location>
+
+ScriptAlias /authn /var/www/cgi-bin/auth.cgi
+<LocationMatch ^/authn>
+ AuthType Basic
+ AuthName "private area"
+ AuthBasicProvider PAM
+ AuthPAMService web
+ Require valid-user
+</LocationMatch>