]>
Commit | Line | Data |
---|---|---|
1 | # $Id$ | |
2 | # NB: | |
3 | # - lighty doesn't support groupfile | |
4 | ||
5 | alias.url += ( | |
6 | "/nagios/cgi-bin/" => "/usr/lib/nagios/cgi/", | |
7 | "/nagios/docs/" => "/usr/share/doc/nagios/", | |
8 | "/nagios/" => "/usr/share/nagios/", | |
9 | ) | |
10 | ||
11 | $HTTP["url"] =~ "^/nagios/" { | |
12 | auth.require = ( | |
13 | "/disabled-nagios/" => ( | |
14 | "method" => "basic", | |
15 | "realm" => "Nagios", | |
16 | "require" => "valid-user" | |
17 | ) | |
18 | ) | |
19 | ||
20 | auth.backend = "htpasswd" | |
21 | # auth.backend = "ldap" | |
22 | ||
23 | # htpasswd config | |
24 | auth.backend.htpasswd.userfile = "/etc/webapps/nagios/passwd" | |
25 | ||
26 | # ldap config | |
27 | auth.backend.ldap.hostname = "localhost" | |
28 | auth.backend.ldap.base-dn = "ou=People,dc=example,dc=org" | |
29 | auth.backend.ldap.filter = "(uid=$)" | |
30 | } |