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