<div>Thanks, I tried both, but still no luck. I added the auth lines to the /share share dir too. I also tried Patrick's AllowOverride. I now get a login prompt when I go to my main nagios page (<a href="http://nnn.nnn.nnn.nnn/nagios">
http://nnn.nnn.nnn.nnn/nagios</a>), but it doesn't appear to pass along to the CGI's or nagios can't figure it out. The authentication now works for the html (the /share stuff) as it let's me log in. If I then click on any of the cgi links, etc... I get the "you do not have permission" messages. I also still have the "Logged in as: ?" at the top of the pages (like the tac overview page).
</div>
<div> </div>
<div>So the pertinent lines in my httpd.conf now appear as :</div>
<div> <font color="#006600">ScriptAlias /nagios/cgi-bin /opt/nagios/sbin<br> <Directory /opt/nagios/sbin><br> AllowOverride AuthConfig<br> Options +ExecCGI <br> Order allow,deny<br> Allow from all
<br> AuthName "Nagios Access"<br> AuthType Basic<br> AuthUserFile /opt/nagios/etc/htpasswd.users<br> Require valid-user<br> </Directory></font></div>
<div>
<p><font color="#006600"> Alias /nagios /opt/nagios/share<br> <Directory /opt/nagios/share><br> Options None<br> AllowOverride None<br> Order allow,deny<br> Allow from all<br> AuthName "Nagios Access"
<br> AuthType Basic<br> AuthUserFile /opt/nagios/etc/htpasswd.users<br> Require valid-user<br> </Directory><br></font></p></div>
<div> </div>
<div>-b</div>
<div><br> </div>
<div><span class="gmail_quote">On 5/31/06, <b class="gmail_sendername">frank</b> <<a href="mailto:ratty@they.org">ratty@they.org</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>I think you have to add the auth lines to the /share directory too. Right<br>now you're only authing on the CGIs which aren't hit on your initial
<br>connection to Nagios. (The frameset all comes from the /share dir)<br><br>-f<br><br>On Wed, 31 May 2006, Brad Clemmons Jr wrote:<br><br>> Date: Wed, 31 May 2006 12:33:56 -0400<br>> From: Brad Clemmons Jr <<a href="mailto:brad.clemmons@gmail.com">
brad.clemmons@gmail.com</a>><br>> To: <a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a><br>> Subject: [Nagios-users] Authentication problem (apache basic)<br>><br>> Ok, I know this is probably a problem with my configuration so I need new
<br>> eyes to look at this.<br>> I have nagios configured and working WITHOUT AUTHENTICATION<br>> (use_authentication=0 in cgi.cfg). If I turn on authentication I don't even<br>> get a login prompt on the page for nagios.
<br>><br>> Here is my script alias stuff in httpd.conf with the auth parameters:<br>><br>> ScriptAlias /nagios/cgi-bin /opt/nagios/sbin<br>> <Directory /opt/nagios/sbin><br>> AllowOverride None
<br>> Options +ExecCGI<br>> Order allow,deny<br>> Allow from all<br>> AuthName "Nagios Access"<br>> AuthType Basic<br>> AuthUserFile /opt/nagios/etc/htpasswd.users
<br>> Require valid-user<br>> </Directory><br>><br>> Alias /nagios /opt/nagios/share<br>> <Directory /opt/nagios/share><br>> Options None<br>> AllowOverride None<br>> Order allow,deny
<br>> Allow from all<br>> </Directory><br>><br>><br>> The htpasswd.users file was created using the following command syntax:<br>><br>> htpasswd -c /opt/nagios/etc/htpasswd.users myusername
<br>><br>> I made sure the correct user/groups could read the htpasswd.users file:<br>><br>> chown root.apache /opt/nagios/etc/htpasswd.users<br>> chmod 640 /opt/nagios/etc/htpasswd.users<br>><br>> In my
cgi.cfg I have use authentication=1 and all commands below it I have<br>> the username I added (ie: authorized_for_system_information=myusername).<br>><br>> At any rate, I get to my nagios main page without any request for login. So
<br>> at the top of the Tactical overview page I have this:<br>> Tactical Monitoring Overview<br>> Last Updated: Tue May 30 13:25:34 EDT 2006<br>> Updated every 90 seconds<br>> Nagios(r) - <a href="http://www.nagios.org">
www.nagios.org</a><br>> Logged in as ?<br>><br>> Now, Once I click on one of the cgi pages like Service Details, I get the<br>> following message:<br>><br>> It appears as though you do not have permission to view information for any
<br>> of the services you requested...<br>> If you believe this is an error, check the HTTP server authentication<br>> requirements for accessing this CGI<br>> and check the authorization options in your CGI configuration file.
<br>><br>><br>> I checked the apache error.log and there's nothing in there recently except<br>> the apache restart notices when I restart apache.<br>> [Tue May 30 12:50:40 2006] [notice] SIGHUP received. Attempting to restart
<br>> [Tue May 30 12:50:40 2006] [notice] Apache/1.3.33 (Debian GNU/Linux)<br>> mod_python/2.7.10 Python/2.3.4 PHP/4.3.10-16 mod_perl/1.29 configured --<br>> resuming normal operations<br>><br>> Any idea's as to why it never prompted me to log in? Also, this is on Apache
<br>> 1.3 and Nagios 2.3.<br>><br>> -Thanks<br>><br></blockquote></div><br>