CGI auth: nagios not getting user from Apache

Matt Pounsett matt.pounsett at cira.ca
Wed Sep 10 16:50:56 CEST 2003


I seem to be having a problem with authentication that I can't work out.  I've
done some searching of the list archives, but can't find any previous emails
that depict quite this problem.

Apache seems to be authenticating me properly.  I'm presented with an HTTP
Auth login, and Apache lets me see my nagios files once I've entered my
password.. however, nagios doesn't seem to recognize me.

At first, the Tactical Monitoring Overview reported me logged in as "?".  Once
I turned on default_user_name it started reporting me logged in as guest.
Whatever I do, I can't seem to get nagios to see the username I actually
logged in with ("mattp").  

Anyone have any ideas what I'm missing?

Here are the relevant config details:

Nagios 1.1
Apache/1.3.27

use_authentication=1
default_user_name=guest
authorized_for_system_information=*
authorized_for_configuration_information=mattp
authorized_for_system_commands=mattp
authorized_for_all_services=mattp
authorized_for_all_hosts=mattp
authorized_for_all_service_commands=mattp
authorized_for_all_host_commands=mattp

.htaccess file (in 'bin' and 'share' directories)
----
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
require valid-user
----

There is only the user 'msttp' in htpasswd.users


-- 
Matt Pounsett                 CIRA - Canadian Internet Registration Authority
Technical Support Programmer                    350 Sparks Street, Suite 1110
matt.pounsett at cira.ca                                 Ottawa, Ontario, Canada
613.237.5335 ext. 231                                      http://www.cira.ca



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
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