]>
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/", | |
bf60adae ER |
7 | "/nagios/docs/" => "/usr/share/doc/nagios/", |
8 | "/nagios/" => "/usr/share/nagios/", | |
82f3b853 | 9 | ) |
10 | ||
fa78054f | 11 | $HTTP["url"] =~ "^/nagios/" { |
102d3a01 ER |
12 | auth.require = ( |
13 | "/disabled-nagios/" => ( | |
14 | "method" => "basic", | |
15 | "realm" => "Nagios", | |
16 | "require" => "valid-user" | |
17 | ) | |
18 | ) | |
19 | ||
82f3b853 | 20 | auth.backend = "htpasswd" |
102d3a01 ER |
21 | # auth.backend = "ldap" |
22 | ||
23 | # htpasswd config | |
82f3b853 | 24 | auth.backend.htpasswd.userfile = "/etc/webapps/nagios/passwd" |
82f3b853 | 25 | |
102d3a01 ER |
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 | } |