Problems implementing Digest Authentication

ReynierPM rperezm at uci.cu
Sat Nov 7 02:57:50 CET 2009


Hi every:
I've setup and configure a Nagios but using Basic Auth as the manual 
suggest at first time. Now I want to use Digest Auth. For that and 
following the documentation from Apache[1] I make this changes at 
/etc/apache2/conf.d/nagios.conf file:

# SAMPLE CONFIG SNIPPETS FOR APACHE WEB SERVER
# Last Modified: 11-26-2005
#
# This file contains examples of entries that need
# to be incorporated into your Apache web server
# configuration file.  Customize the paths, etc. as
# needed to fit your system.

ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"

<Directory "/usr/local/nagios/sbin">
#  SSLRequireSSL
    Options ExecCGI
    AllowOverride None
    Order allow,deny
    Allow from all
#  Order deny,allow
#  Deny from all
#  Allow from 127.0.0.1

    AuthType Digest
    AuthName "Nagios Access"
    AuthDigestDomain /usr/local/nagios/sbin/ http://10.128.50.2/nagios/

    AuthDigestProvider file
    AuthUserFile /usr/local/nagios/etc/htpasswd.users
    Require valid-user

#   AuthName "Nagios Access"
#   AuthType Basic
#   AuthUserFile /usr/local/nagios/etc/htpasswd.users
#   Require valid-user
</Directory>

Alias /nagios "/usr/local/nagios/share"

<Directory "/usr/local/nagios/share">
#  SSLRequireSSL
    Options None
    AllowOverride None
    Order allow,deny
    Allow from all
#  Order deny,allow
#  Deny from all
#  Allow from 127.0.0.1

    AuthType Digest
    AuthName "Nagios Access"
    AuthDigestDomain /usr/local/nagios/sbin/ http://10.128.50.2/nagios/

    AuthDigestProvider file
    AuthUserFile /usr/local/nagios/etc/htpasswd.users
    Require valid-user

#   AuthName "Nagios Access"
#   AuthType Basic
#   AuthUserFile /usr/local/nagios/etc/htpasswd.users
#   Require valid-user
</Directory>


AS you can see here I only commented the lines for Basic Auth and add 
the lines for Digest Auth. When I try to login the pass is asked one 
time and then again and again and so on. Why? What I'm doing wrong?

The error reported by Apache is this:
[Fri Nov 06 20:53:08 2009] [error] [client 10.8.40.250] Digest: user 
`nagiosadmin' in realm `Nagios Access' not found: /nagios/

[1] http://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html
-- 
Saludos
ReynierPM

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
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