You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Steve Waltner <sw...@lsil.com> on 2003/07/17 21:07:24 UTC

[users@httpd] Segmentation Fault with mod_auth_ldap - 2.0.47

I'm trying to setup a new web server and tie it into out corporate LDAP 
server, but once I put the AuthLDAPUrl config line in the httpd.conf 
file, the httpd process segfaults on startup. Here is what I put in my 
httpd.conf file:

<Location /cgi-bin/BackupPC_Admin>
SSLRequireSSL
AuthName "BackupPC Admin Page"
AuthType Basic
AuthLDAPEnabled on
AuthLDAPAuthoritative on
AuthLDAPURL ldap://ldap.lsil.com/o=LSI
require valid-user
</Location>

When configured with these settings, I immediately get a segmentation 
fault & core dump when httpd tries to read the config file. It even 
crashes when httpd tries to check the config file for validity. GDB 
shows the following backtrace:

(gdb) bt
#0  0xfef32f68 in strlen () from /usr/lib/libc.so.1
#1  0xff1ca758 in apr_pstrdup (a=0x17fbe8, s=0x286f626a <Address 
0x286f626a out of bounds>) at apr_strings.c:114
#2  0x00044c18 in mod_auth_ldap_parse_url (cmd=0xffbffb20, 
config=0x1d1a50, url=0x1d1b38 "ldap://ldap.lsil.com/o=LSI")
     at mod_auth_ldap.c:794
#3  0x000783e0 in invoke_cmd (cmd=0x161e98, parms=0xffbffb20, 
mconfig=0x1d1a50, args=0x1c4212 "") at config.c:703
#4  0x00078a20 in ap_walk_config_sub (current=0x1c41d8, 
parms=0xffbffb20, section_vector=0x1d1788) at config.c:1082
#5  0x00078ac0 in ap_walk_config (current=0x1c41d8, parms=0xffbffb20, 
section_vector=0x1d1788) at config.c:1121
#6  0x00089e88 in urlsection (cmd=0xffbffb20, mconfig=0x1bdaf0, 
arg=0x1d18ff "") at core.c:1741
#7  0x000783e0 in invoke_cmd (cmd=0x132894, parms=0xffbffb20, 
mconfig=0x1bdaf0, args=0x1c4070 "/cgi-bin/BackupPC_Admin>")
     at config.c:703
#8  0x00078a20 in ap_walk_config_sub (current=0x1c4050, 
parms=0xffbffb20, section_vector=0x1bcbe8) at config.c:1082
#9  0x00078ac0 in ap_walk_config (current=0x1c4050, parms=0xffbffb20, 
section_vector=0x1bcbe8) at config.c:1121
#10 0x00079594 in ap_process_config_tree (s=0x1834d0, 
conftree=0x1c4050, p=0x17fbe8, ptemp=0x1b9cd0) at config.c:1594
#11 0x0007bcb8 in main (argc=3, argv=0xffbffc64) at main.c:581
(gdb)

I get this error any time the AuthLDAPURL config entry is present. When 
I comment out that line, the server starts up fine. Any ideas on what 
needs to be done?

I'm running Solaris 9, with Apache 2.0.47, OpenSSL 0.9.7b, OpenLDAP 
2.1.22, and used GCC 3.3 and Gmake 3.80 to compile all three software 
packages.

Steve


---------------------------------------------------------------------
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