Date: Sat, 12 Jun 2010 09:11:40 GMT From: Kazuo Dohzono <dohzono@axion-software.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/147806: [PATCH] www/apache20: httpd doesn't start with WITH_LDAP. Message-ID: <201006120911.o5C9BedV061225@www.freebsd.org> Resent-Message-ID: <201006120920.o5C9K258068404@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201006120911.o5C9BedV061225>