SOURCES: nagios-lighttpd.conf - auth samples

glen glen at pld-linux.org
Sun Oct 5 05:43:07 CEST 2008


Author: glen                         Date: Sun Oct  5 03:43:07 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- auth samples

---- Files affected:
SOURCES:
   nagios-lighttpd.conf (1.6 -> 1.7) 

---- Diffs:

================================================================
Index: SOURCES/nagios-lighttpd.conf
diff -u SOURCES/nagios-lighttpd.conf:1.6 SOURCES/nagios-lighttpd.conf:1.7
--- SOURCES/nagios-lighttpd.conf:1.6	Wed Jul 26 13:01:10 2006
+++ SOURCES/nagios-lighttpd.conf	Sun Oct  5 05:43:01 2008
@@ -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 @@
 )
 
 $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=$)"
+}
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/nagios-lighttpd.conf?r1=1.6&r2=1.7&f=u



More information about the pld-cvs-commit mailing list