]> git.pld-linux.org Git - packages/nagios-naglite.git/blobdiff - lighttpd.conf
update to current master (6fa421)
[packages/nagios-naglite.git] / lighttpd.conf
index 66cd90ddc34c48d0da7453f89a883c81e910c00c..06d0732ddf437b36e0c6c2f095c8e5d2dc236625 100644 (file)
@@ -1,3 +1,24 @@
 alias.url += (
     "/naglite" => "/usr/share/naglite",
 )
+
+$HTTP["url"] =~ "^/naglite/" {
+       auth.require = (
+               "/naglite/" => (
+                       "method"  => "basic",
+                       "realm"   => "Nagios",
+                       "require" => "valid-user"
+               )
+       )
+
+       auth.backend = "htpasswd"
+#      auth.backend = "ldap"
+
+       # htpasswd config
+       auth.backend.htpasswd.userfile = "/etc/webapps/nagios/passwd"
+
+       # ldap config
+       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.096884 seconds and 4 git commands to generate.