DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21719>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21719

Adding AuthLDAPURL to httpd.conf file causes segmentaion fault on Solaris 9

           Summary: Adding AuthLDAPURL to httpd.conf file causes segmentaion
                    fault on Solaris 9
           Product: Apache httpd-2.0
           Version: 2.0.47
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: mod_auth_ldap
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


I've been trying to get mod_auth_ldap running on a Solaris server with limited
success. Every time I add the LDAP configuration to httpd.conf, the httpd
process crashes on startup, even when checking the httpd.conf syntax. I append
the following to the very end of the default httpd.conf file to configure
mod_auth_ldap (except for the obfuscated LDAP URL).

<Directory /tmp/apache-2.0.46/cgi-bin/ldap>
AuthName "LDAP Protected Page"
AuthType Basic
AuthLDAPEnabled on
AuthLDAPAuthoritative on
AuthLDAPURL ldap://hostname/basedn
require valid-user
</Directory>

gdb shows a backtrace of:

#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=0xffbffb38, config=0x1d2148, 
    url=0x1d2230 "ldap://hostname/basedn";) at mod_auth_ldap.c:794
#3  0x000783e0 in invoke_cmd (cmd=0x161e98, parms=0xffbffb38, mconfig=0x1d2148,
args=0x1c441a "")
    at config.c:703
#4  0x00078a20 in ap_walk_config_sub (current=0x1c43c8, parms=0xffbffb38,
section_vector=0x1d1df0)
    at config.c:1082
#5  0x00078ac0 in ap_walk_config (current=0x1c43c8, parms=0xffbffb38,
section_vector=0x1d1df0) at config.c:1121
#6  0x00089bf8 in dirsection (cmd=0xffbffb38, mconfig=0x1bdaf0, arg=0x1d1f7d "")
at core.c:1674
#7  0x000783e0 in invoke_cmd (cmd=0x13287c, parms=0xffbffb38, mconfig=0x1bdaf0, 
    args=0x1c4250 "/home/backuppc/apache-2.0.46/cgi-bin/backuppc>") at 
config.c:703
#8  0x00078a20 in ap_walk_config_sub (current=0x1c4230, parms=0xffbffb38,
section_vector=0x1bcbe8)
    at config.c:1082
#9  0x00078ac0 in ap_walk_config (current=0x1c4230, parms=0xffbffb38,
section_vector=0x1bcbe8) at config.c:1121
#10 0x00079594 in ap_process_config_tree (s=0x1834d0, conftree=0x1c4230,
p=0x17fbe8, ptemp=0x1b9cd0)
    at config.c:1594
#11 0x0007bcb8 in main (argc=3, argv=0xffbffc7c) at main.c:581

I don't believe this is related to bug 18756 since that sounds like it's tied to
the caching functions of mod_ldap. I haven't activated LDAP caching on my
configuration. The only chage to the default httpd.conf file is changing the
port number to 8000 and the <Directory> clause shown above.

I'm using the following software on my web server:
Solaris 9 04/03 (with Recommended Patch bundle from May 1, 2003)
GCC 3.3
GNU Make 3.80
Apache 2.0.47
OpenSSL 0.9.7b
OpenLDAP 2.1.22

I installed the software as follows:
cd /tmp/openssl-0.9.7b
./Configure --prefix=/tmp/test solaris-sparcv8-gcc
make
make install
cd /tmp/openldap-2.1.22
./configure --prefix=/tmp/test --disable-slapd
make depend
make
make install
(create links in /usr/local/lib and /usr/local/include to files in /tmp/test/*)
cd /tmp/httpd-2.0.47
./configure --prefix=/tmp/test-apache --enable-ssl --with-ssl=/tmp/test
--with-ldap --enable-ldap --enable-auth-ldap --enable-so
make
make install

Running the same commands on a Linux system (RedHat ???, Kernel 2.2.12-20)
tields a working setup, which makes it appear os though mod_auth_ldap is not
compatible with Solaris.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to