httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jon Rosebaugh" <chai...@gmail.com>
Subject [users@httpd] digest authentication with apache2.2 and mod_authn_dbd
Date Mon, 29 Jan 2007 03:42:56 GMT
I'm trying to set up digest authentication with mod_authn_dbd by
adapting the basic authentication examples and looking at the
reference for mod_auth_digest, and I'm getting the error "No DBD Authn
configured!" Everything appears fine when the server starts, but when
I hit the protected directory, that happens. I looked at the source
for mod_authn_dbd, and there are apparently four different errors that
can trigger that message, and I have no idea which one it is.

/etc/apache2/mods-enabled/dbd.conf (included at line 196 of apache2.conf)
#Database Management

#Use the PostgreSQL driver
DBDriver pgsql

#Connection string: database name and login credentials
DBDParams "dbname=xxxxxx user=apache password=xxxxxx"

#Parameters for Connection Pool Management
DBDMin  1
DBDKeep 2
DBDMax  10
DBDExptime 60

/etc/apache2/sites-enabled/inklesspen (included at line 669 of apache2.conf)
<VirtualHost 65.19.178.50>
ServerName www.inklesspen.com
ServerAlias inklesspen.com
DocumentRoot /domains/inklesspen
<Directory /domains/inklesspen>
        AddHandler cgi-script cgi
        AddHandler cgi-script py
        Options ExecCGI Indexes SymLinksIfOwnerMatch
        AllowOverride All
</Directory>

<Directory /domains/inklesspen/testauth>
AuthType Digest
AuthName "Test Realm"
AuthDigestProvider dbd
Require valid-user
AuthDigestDomain ./

AuthDBDUserRealmQuery "SELECT md5pass FROM users WHERE user_name = %s AND realm
= %s"

</Directory>
</VirtualHost>


excerpt from error.log:
[Sun Jan 28 19:23:17 2007] [notice] caught SIGTERM, shutting down
[Sun Jan 28 19:23:21 2007] [notice] Digest: generating secret for
digest authentication ...
[Sun Jan 28 19:23:21 2007] [notice] Digest: done
[Sun Jan 28 19:23:21 2007] [notice] Apache/2.2.3 (Debian) DAV/2
SVN/1.4.2 configured -- resuming normal operations
[Sun Jan 28 19:24:08 2007] [error] [client 69.24.190.113] No DBD Authn
configured!

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message