From: Elan Ruusamäe Date: Sun, 5 Oct 2008 03:42:13 +0000 (+0000) Subject: - auth samples X-Git-Tag: auto/ac/cacti-0_8_7b-10~2 X-Git-Url: http://git.pld-linux.org/?a=commitdiff_plain;ds=sidebyside;h=bd953e45a32e73dda7240aa3f3ed1d4851417dde;p=packages%2Fcacti.git - auth samples Changed files: cacti-lighttpd.conf -> 1.2 --- diff --git a/cacti-lighttpd.conf b/cacti-lighttpd.conf index fbcaa2c..e94f3d4 100644 --- a/cacti-lighttpd.conf +++ b/cacti-lighttpd.conf @@ -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=$)" +}