Authentication Problems

Marc Powell marc at ena.com
Tue Feb 17 17:32:47 CET 2004


On Tuesday, February 17, 2004 9:27 AM, Mark Campbell shared with us:

> Hey Guys,
> 
> 	Been trying to get this working for a while now with no success.
I
> downloaded the new version of Nagios(1.2) and installed it to run as
> the same user as my webserver.  It compiled and installed without any
> problems on my   
> SunOS5.9 box.  I am using Apache2.0.48.  I then did a minimal config
> just to test the system before I go planning out the whole network. 
> Everything seems to be in order except that despite logging in via
> http, nagios doesn't seem to recognise the user I logged in as.  It
> gives me the error "Logged in as ?" in the top left hand corner of
> most pages.  As well as "It appears as though you do not have
> permission to view information for any of the services you
> requested..." type messages on overview and summary pages..       
> 
> I created the .htaccess and the htpasswd files as I normally would on
> the system. 
> 
> # cat httppassword
> admin:djaskyicya
> 
> # cat /usr/local/nagios/share/.htaccess
> AuthName "Nagios Access"
> AuthType Basic
> AuthUserFile /usr/local/nagios/etc/httppassword
> require valid-user
> 

You missed the most important place. You _must_ have this .htaccess file
in /usr/local/nagios/sbin. Having it in /share just prevents
unauthorized people from gaining access to the main menu. The way you
have it currently set up, Apache will not pass the environment variable
REMOTE_USER to any of the CGI's because it's not required. Nagios simply
looks at that environment variable to determine who the current user is.
I believe that most people have the .htaccess file in both directories.

--
Marc


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id56&alloc_id438&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list