summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'www-apache/mod_authnz_external/files/10_mod_authnz_external.conf')
-rw-r--r--www-apache/mod_authnz_external/files/10_mod_authnz_external.conf34
1 files changed, 34 insertions, 0 deletions
diff --git a/www-apache/mod_authnz_external/files/10_mod_authnz_external.conf b/www-apache/mod_authnz_external/files/10_mod_authnz_external.conf
new file mode 100644
index 000000000000..fc59272caa0e
--- /dev/null
+++ b/www-apache/mod_authnz_external/files/10_mod_authnz_external.conf
@@ -0,0 +1,34 @@
+<IfDefine AUTHNZ_EXTERNAL>
+LoadModule authnz_external_module modules/mod_authnz_external.so
+
+# provided by net-www/pwauth
+#AddExternalAuth pwauth /etc/apache2/modules/pwauth
+#SetExternalAuthMethod pwauth pipe
+
+# For external group check (provided by net-www/pwauth)
+#AddExternalGroup unixgroup modules/unixgroup
+#SetExternalGroupMethod unixgroup environment
+
+# Put an .htaccess file in whatever directory you want to protect.
+# A typical .htaccess file would look like:
+#
+# AuthName Your-Site-Name
+# AuthType Basic
+# AuthExternal pwauth
+# Require valid-user
+# or
+# Require user1
+#
+# GroupExternal unixgroup
+# AuthGroupFile /dev/null
+# Require group <groupname1> <groupname2> ...
+#
+# Alternately, you can put a <Directory> block with the same directives
+# in your httpd.conf file.
+#
+# Note1: Using group method, don't forget to add users in the authorized group
+# group files
+# somegroup:x:500:user1,user2,user3
+</IfDefine>
+
+# vim: ts=4 filetype=apache