SOURCES: cacti-lighttpd.conf - auth samples
glen
glen at pld-linux.org
Sun Oct 5 05:42:19 CEST 2008
Author: glen Date: Sun Oct 5 03:42:19 2008 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- auth samples
---- Files affected:
SOURCES:
cacti-lighttpd.conf (1.1 -> 1.2)
---- Diffs:
================================================================
Index: SOURCES/cacti-lighttpd.conf
diff -u SOURCES/cacti-lighttpd.conf:1.1 SOURCES/cacti-lighttpd.conf:1.2
--- SOURCES/cacti-lighttpd.conf:1.1 Sun Oct 5 04:07:16 2008
+++ SOURCES/cacti-lighttpd.conf Sun Oct 5 05:42:13 2008
@@ -1,3 +1,25 @@
+# $Id$
+
alias.url += (
"/cacti" => "/usr/share/cacti",
)
+
+$HTTP["url"] =~ "^/cacti/" {
+ auth.require = (
+ "/disabled-cacti/" => (
+ "method" => "basic",
+ "realm" => "Cacti",
+ "require" => "valid-user"
+ )
+ )
+
+ auth.backend = "htpasswd"
+# auth.backend = "ldap"
+
+ # htpasswd config
+ auth.backend.htpasswd.userfile = "/etc/webapps/passwd"
+
+ auth.backend.ldap.hostname = "localhost"
+ auth.backend.ldap.base-dn = "ou=People,dc=example,dc=org"
+ auth.backend.ldap.filter = "(uid=$)"
+}
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/cacti-lighttpd.conf?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list