Auth problems

Nicola Agnelli nicola.agnelli at spiderwall.com
Tue May 30 08:55:46 CEST 2006


Hugo van der Kooij wrote:
> On Mon, 29 May 2006, Nicola Agnelli wrote:
> 
>> Hugo van der Kooij wrote:
>>> On Fri, 26 May 2006, Nicola Agnelli wrote:
>>>
>>>>> <IfDefine NAGIOS>
>>>>> 	ScriptAlias /nagios/cgi-bin/ /usr/nagios/sbin/
>>>>> 	<Directory "/usr/nagios/sbin/">
>>>>> 		AllowOverride AuthConfig
>>>>> 		Options ExecCGI
>>>>> 		Order allow,deny
>>>>> 		Allow from all
>>>>> 	</Directory>
>>>>> 	Alias /nagios /usr/nagios/share/
>>>>> 	<Directory "/usr/nagios/share">
>>>>> 		AllowOverride AuthConfig
>>>>> 		Order allow,deny
>>>>> 		Allow from all
>>>>> 	</Directory>
>>>>> </IfDefine>
>>> Why didn't you put the authentication here? Using .htaccess files is a
>>> substitute for putting authentication into the httpd.conf file. It is only
>>> intended for cases where you can not change httpd.conf itself.
>>>
>>>> Unfortunatly i still having problems with auth.. i can't login in noway!
>>> Pick up the apache manual and build a test directory on your webserver and
>>> see that you can get user authentication working on there following the
>>> samples in the apache manual.
>>>
>>> Once you figure it out you can translate the solution to the nagios
>>> sections.
>>>
>>> Untill you get the sample section working as shown on
>>> http://httpd.apache.org/docs/2.0/howto/auth.html there is little point in
>>> trying anything else.
>>>
>>> This is not a Nagios issue but an issue of you trying to understand your
>>> apache server.
>>>
>>> Hugo.
>>>
>> i've changed my /etc/apache2/modules.d/99_nagios.conf:
>>
>> <IfDefine NAGIOS>
>>         ScriptAlias /nagios/cgi-bin/ /usr/nagios/sbin/
>>         <Directory "/usr/nagios/sbin/">
>> #               AllowOverride AuthConfig
>>                 AuthName "Nagios Access"
>>                 AuthType Basic
>>                 AuthUserFile /etc/nagios/htpasswd.users
>>                 require valid-user
>>                 Options ExecCGI
>>                 Order allow,deny
>>                 Allow from all
>>         </Directory>
>>         Alias /nagios /usr/nagios/share/
>>         <Directory "/usr/nagios/share">
>> #               AllowOverride AuthConfig
>>                 AuthName "Nagios Access"
>>                 AuthType Basic
>>                 AuthUserFile /etc/nagios/htpasswd.users
>>                 require valid-user
>>                 Order allow,deny
>>                 Allow from all
>>         </Directory>
>> </IfDefine>
>>
>>
>>
>> I've restarted apache but nothing changed :s ..
> 
> I give up. If you can't follow instructions and test with a regular
> directory first then why should I bother?
> 
> Hugo.
> 


I solved,
thank you for precious help.



-- 
Nicola


-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
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