ports/147806: [PATCH] www/apache20: httpd doesn't start with WITH_LDAP.

Kazuo Dohzono dohzono at axion-software.com
Sat Jun 12 09:20:03 UTC 2010


>Number:         147806
>Category:       ports
>Synopsis:       [PATCH] www/apache20: httpd doesn't start with WITH_LDAP.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 12 09:20:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Kazuo Dohzono
>Release:        FreeBSD 8.1-PRERELEASE
>Organization:
Axion-Software Inc. 
>Environment:
FreeBSD dohzono.vmware.axion-software.com 8.1-PRERELEASE FreeBSD 8.1-PRERELEASE #3:Sun May 30 21:43:03 JST 2010    dohzono at dohzono.vmware.axion-software.com:/usr/local/tmp/obj/usr/src/sys/GENERIC 
>Description:
WITH_LDAP causes www/apache20/Makefile to add the opetion
"--enable-auth-ldap". This makes mod_auth_ldap as a built-in module
(you can check with "httpd -l").

mod_auth_ldap referes mod_ldap, it usually isn't a built-in module,
and it faults with NULL pointer dereference at util_ldap.c.  

>How-To-Repeat:
# cd /usr/ports/www/apache20
# make WITH_DBM=bdb WITH_LDAP=yes WITH_SSL_MODULES=yes WITH_SUEXEC_MODULES=yes WITH_PROXY_MODULES=yes WITH_KQUEUE_MODULES=yes WITHOUT_IPV6=yes install
# /usr/local/sbin/httpd -l

>Fix:
Change "--enable-auth-ldap" in the Makefile to "--enable-auth-ldap=shared". 

Patch attached with submission follows:

--- Makefile.orig        2010-05-27 08:03:07.000000000 +0900
+++ Makefile        2010-06-12 17:43:16.000000000 +0900
@@ -144,7 +144,7 @@
 
 .if defined (WITH_LDAP) || defined (WITH_LDAP_MODULES)
 USE_OPENLDAP=                YES
-CONFIGURE_ARGS+=        --enable-ldap=shared --enable-auth-ldap --with-ldap \
+CONFIGURE_ARGS+=        --enable-ldap=shared --enable-auth-ldap=shared --with-ldap \
         --with-ldap-lib="${LOCALBASE}/lib" \
         --with-ldap-include="${LOCALBASE}/include"
 .endif


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list