Cgi Authentication

Rusch, Daniel Daniel.Rusch at GlobalCrossing.com
Fri Sep 13 15:40:36 CEST 2002


THis is how I did it:

Change the DocumentRoot to 

DocumentRoot "/usr/local/nagios/share" 

ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/ 
<Directory "/usr/local/nagios/sbin/"> 
<Files cmd.cgi> 
AuthName "Nagios Access" 
AuthType Basic 
AuthUserFile /usr/local/nagios/etc/.htpasswd.users 
require valid-user 
</Files> 
Options ExecCGI 
Order allow,deny 
Allow from all 
</Directory> 

Alias /nagios/ /usr/local/nagios/share/ 
<Directory "/usr/local/nagios/share"> 
Options None 
AllowOverride AuthConfig 
Order allow,deny 
Allow from all 
</Directory> 

Apache.conf is set up this way to allow guests to view the nagios site
without being prompted for a login (and only prompting if someone attempts
to change something 

I did this here instead of in an .htaccess file for two reasons: 
1. The httpd.conf is loaded once, where as the .htaccess file is read every
time access to the directory is requested. 
2. It puts all the config stuff in one place

-----Original Message-----
From: Darren Gamble [mailto:Darren.Gamble at sjrb.ca]
Sent: Thursday, September 12, 2002 12:14 PM
To: 'morgan'; nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] Cgi Authentication


Good day,

> Morning Everyone,
> 
> I'm haveing a problem with user authentication, I want people 
> to be able
> to
> use the "guest" account without having to login, I'm able to 
> to log in as
> myself but everyone a "guest" tries to connect it it still asks for a
> password.

Remember that it is not Nagios, but Apache (or whatever you are using as a
web server) that is asking for authentication.

You will either have to create a "guest" account with a user/password in a
readable location or printed in the authentication realm, or have your
authentication module allow a blank username and password.

============================
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948


-------------------------------------------------------
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


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf




More information about the Users mailing list