Date: Sat, 12 Apr 2003 09:43:05 GMT From: jimd_NOSPAM@siu.edu To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/50867: Balsa2 depends on OpenLDAP-2.0 cache which fails under OpenLDAP-2.1 Message-ID: <200304120943.h3C9h5XA009852@255-141.ip.ll.net> Resent-Message-ID: <200304121440.h3CEe4x4057164@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 50867 >Category: ports >Synopsis: Balsa2 depends on OpenLDAP-2.0 cache which fails under OpenLDAP-2.1 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Apr 12 07:40:04 PDT 2003 >Closed-Date: >Last-Modified: >Originator: root >Release: FreeBSD 4.7-RELEASE i386 >Organization: >Environment: System: FreeBSD 255-141.ip.ll.net 4.7-RELEASE FreeBSD 4.7-RELEASE #2: Sat Jan 25 19:54:21 CST 2003 x@freebsd2.localnet10:/usr/src/sys/compile/XSYSTEM i386 >Description: Balsa-2 libbalsa/address-book-ldap.c attempts to use "ldap_destroy_cache" which is defined in OpenLDAP-2.0, but not in OpenLDAP-2.1, which is what I use. In the same source file, an "ldap_enable_cache" is already commented out: /* ldap_enable_cache(ab->directory, LDAP_CACHE_TIMEOUT, 0); */ For use with OpenLDAP-2.1, the "ldap_destroy_cache" statement should be commented out. I suggest that a make/build system flag for the major version of OpenLDAP installed (ports or independent) be defined to allow for selectivity for OpenLDAP-2.0 and OpenLDAP-2.1 functions, seeing as how OpenLDAP has change dramatically between 2.0 and 2.1. This OpenLDAP version make flag can then be used to comment out the "ldap_destroy_cache" when Balsa2 is being compiled in an OpenLDAP-2.1 environment. >How-To-Repeat: >Fix: Specific to an OpenLDAP-2.1 environment: --- libbalsa/address-book-ldap.c.orig Sat Apr 12 09:00:48 2003 +++ libbalsa/address-book-ldap.c Sat Apr 12 09:01:14 2003 @@ -201,7 +201,7 @@ libbalsa_address_book_ldap_close_connection(LibBalsaAddressBookLdap * ab) { if (ab->directory) { - ldap_destroy_cache(ab->directory); +/* ldap_destroy_cache(ab->directory); 11 Apr 2003, JED */ ldap_unbind(ab->directory); ab->directory = NULL; } >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304120943.h3C9h5XA009852>