]> git.pld-linux.org Git - packages/cacti.git/blobdiff - cacti-lighttpd.conf
poller_graphs_reapply_names.php uses -id instead of --id
[packages/cacti.git] / 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.082454 seconds and 4 git commands to generate.