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

nagios-lighttpd.conf

index c6fd2f7855cfdacd5a0f65518997e25f9a02d24f..eb94ca1d20b0e70e4f441ff3e4957b99abf1db2a 100644 (file)
@@ -1,7 +1,6 @@
 # $Id$
 # NB:
 # - lighty doesn't support groupfile
-# - lighty doesn't support Apache's $apr1$ passwords
 
 alias.url += (
        "/nagios/cgi-bin/" => "/usr/lib/nagios/cgi/",
@@ -9,14 +8,22 @@ alias.url += (
 )
 
 $HTTP["url"] =~ "^/nagios/" {
+       auth.require = (
+               "/disabled-nagios/" => (
+                       "method"  => "basic",
+                       "realm"   => "Nagios",
+                       "require" => "valid-user"
+               )
+       )
+
        auth.backend = "htpasswd"
+#      auth.backend = "ldap"
+
+       # htpasswd config
        auth.backend.htpasswd.userfile = "/etc/webapps/nagios/passwd"
-}
 
-auth.require = (
-       "/nagios/" => (
-               "method"  => "basic",
-               "realm"   => "Nagios",
-               "require" => "valid-user"
-       )
-)
+       # 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.038466 seconds and 4 git commands to generate.