[FRAUD] [DISARMED] Re: Authentication problem (apache basic)

Hugo van der Kooij hvdkooij at vanderkooij.org
Sat Jun 3 09:37:39 CEST 2006


On Fri, 2 Jun 2006, Brad Clemmons Jr wrote:

> Well, the only time I see myself in the error.log is if I fatfinger the
> password.  Although, looking at the access.log I see when I get to the
> initial page and log in (see the get requests for the html stuff from the
> side bar):
> xxx.xxx.xxx.xxx - myusername [02/Jun/2006:12:38:21 -0400] "GET
> /nagios/images/orangedot.gif HTTP/1.1" 304 - "
> http://xxx.xxx.xxx.xxx/nagios/side.html" "Mozilla/4.0 (compatible; MSIE 6.0;
> Windows NT 5.1; SV1; .NET CLR 1.1.4322)" "-"
> I don't see my username after clicking on any of the cgi's, but I do see the
> cgi request in the access log:
> xxx.xxx.xxx.xxx - - [02/Jun/2006:12:38:24 -0400] "GET
> /opt/nagios/cgi-bin/tac.cgi HTTP/1.1" 200 11961 "
> http://xxx.xxx.xxx.xxx/nagios/side.html" "Mozilla/4.0 (compatible; MSIE 6.0;
> Windows NT 5.1; SV1; .NET CLR 1.1.4322)" "-"

It seems you are not authenticated when you access the CGI's. You may need
to verify your apache config. A working sample enclosed below.

ScriptAlias /nagios/cgi-bin "/usr/lib/nagios/cgi"
<Directory "/usr/lib/nagios/cgi">
   Options ExecCGI
   AllowOverride None
   Order allow,deny
   Allow from all
   AuthName "Nagios Access"
   AuthType Basic
   AuthUserFile /etc/nagios/htpasswd.users
   Require valid-user
</Directory>

Alias /nagios "/usr/share/nagios"
<Directory "/usr/share/nagios">
   Options None
   AllowOverride None
   Order allow,deny
   Allow from all
   AuthName "Nagios Access"
   AuthType Basic
   AuthUserFile /etc/nagios/htpasswd.users
   Require valid-user
</Directory>


Hugo.

-- 
	I hate duplicates. Just reply to the relevant mailinglist.
	hvdkooij at vanderkooij.org		http://hvdkooij.xs4all.nl/
		Don't meddle in the affairs of magicians,
		for they are subtle and quick to anger.


_______________________________________________
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