Bug 40582 - Apache crashes at startup when using database authentication
Summary: Apache crashes at startup when using database authentication
Status: RESOLVED FIXED
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_authn_ldap (show other bugs)
Version: 2.2.2
Hardware: HP other
: P2 blocker (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-22 12:50 UTC by destroyedlolo
Modified: 2007-05-22 02:04 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description destroyedlolo 2006-09-22 12:50:10 UTC
Hi,

I have built Apache 2.2.3 on my old HP-UX 10.20 box with PostGreSQL support.

Configuration was :

./configure  --enable-info=shared --enable-cgi=shared --enable-so
--enable-unique-id=shared \
--enable-authn-dbd=shared --enable-dbd=shared --with-included-apr
--with-pgsql=/usr/local/pgsql/ --with-expat=builtin

I have in my configuration file :
[...]
LoadModule authn_dbd_module modules/mod_authn_dbd.so
LoadModule dbd_module modules/mod_dbd.so
LoadModule unique_id_module modules/mod_unique_id.so
LoadModule dav_module modules/mod_dav.so
LoadModule info_module modules/mod_info.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule dav_fs_module modules/mod_dav_fs.so
[...]

# Securite par postgresql
DBDriver pgsql
DBDPersist On
DBDParams "dbname=www user=mydbuser"

<Directory /projets/perso/Mariage/>
	AuthDBDUserPWQuery "select mdp from mariage.comptes where nom = %s"
</Directory>
[...]

Apache crashes if I try to launch it :
[33]/usr/local/apache2 #bin/apachectl restart
bin/apachectl[80]: 28336 Memory fault(coredump)

If I comment out AuthDBDUserPWQuery line, it starts and working fine (obviously
w/o authentication).

I'll try this W.E. on my production server (NetBSD 3.0/Sparc) to check if it's
due to my obsolete HP-UX 10.20 or if it's a general problem.

Best regards,

Laurent
Comment 1 destroyedlolo 2006-09-25 07:38:23 UTC
Hello,

I did some test on my Sparc/NetBSD-3.0 box this W.E. and I got the same issue :
as soon as I add "AuthDBDUserPWQuery" in the configuration, apache crash with a
core dump.

I changed this bug to "blocker" as it's not due to my obsolete HP-UX box.

Bye

Laurent
Comment 2 Chris Darroch 2006-10-18 13:49:30 UTC
Out of interest, do you have "AuthBasicProvider dbd" in your configuration
anywhere?  For example,

<Directory /projets/perso/Mariage/>
    AuthType Basic
    AuthName "mariage"
    AuthBasicProvider dbd
    Require valid-user
    AuthDBDUserPWQuery "select mdp from mariage.comptes where nom = %s"
</Directory>

If it's still failing with those parameters, it would be great if you
could get a stack trace.