]> git.pld-linux.org Git - packages/cacti.git/commitdiff
- auth samples
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 5 Oct 2008 03:42:13 +0000 (03:42 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cacti-lighttpd.conf -> 1.2

cacti-lighttpd.conf

index fbcaa2c04b96a84747df476fad71d44457a31672..e94f3d4a7e32acbcb109f3228001ca5cb450c32f 100644 (file)
@@ -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=$)"
+}
This page took 0.028649 seconds and 4 git commands to generate.