A problem with nagios authentication


#1

My login does not work correctly

A Login window appeard and I inputed a correct password for the login.

But it says athentication fails.

There is no problem in htpasswd and htaccess configuration.

This is my .httpd.conf file.
Alias / /usr/local/nagios/share/
<Directory “/usr/local/nagios/share”>
Options FollowSymLinks
AllowOverride AuthConfig
Order allow,deny
Allow from all

This is my .htaccess file.

AuthName "Authentication"
AuthType Basic
AuthUserFile .htpasswd
require valid-user


#2

and where is the .htpasswd file? try giving it an absoulte path.

Luca


#3

htpasswd’location is the same as .htaccess’s location


#4

so what? in which context is the apache process running? i doubt it runs in the nagios directory… so try giving it an absolute path to the .htpasswd file.

Luca


#5

In other words, have a look at the docs.
nagios.sourceforge.net/docs/1_0/cgiauth.html

You have not specified the correct location for the directive
AuthUserFile

AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
require valid-user