From: Ken Raeburn Date: Wed, 20 Sep 2006 01:30:25 +0000 (+0000) Subject: * kdb_ldap.h: If BUILD_WITH_BROKEN_LDAP is defined, skip version checks X-Git-Tag: krb5-1.6-alpha1~133 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b2239415f139c8822715180716e41b4f9606232e;p=krb5.git * kdb_ldap.h: If BUILD_WITH_BROKEN_LDAP is defined, skip version checks ticket: 4292 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18595 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap.h b/src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap.h index df6d4e819..002b94886 100644 --- a/src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap.h +++ b/src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap.h @@ -36,12 +36,20 @@ #define LDAP_DEPRECATED 1 #include -/* Check for acceptable versions. */ -#if defined(LDAP_API_FEATURE_X_OPENLDAP) -# if LDAP_VENDOR_VERSION < 20224 -# error This code triggers bugs in old OpenLDAP implementations. Please update to 2.2.24 or later. +/* Check for acceptable versions. + + OpenLDAP version 2.2.6 is known to have some kind of problem that + is tickled by the use of multiple handles in this code. Version + 2.2.19 in Mac OS 10.4.7 seems to be buggy as well. Version 2.2.24 + doesn't have this problem. Other in-between versions have not been + tested. */ +#ifndef BUILD_WITH_BROKEN_LDAP +# if defined(LDAP_API_FEATURE_X_OPENLDAP) +# if LDAP_VENDOR_VERSION < 20224 +# error This code triggers bugs in old OpenLDAP implementations. Please update to 2.2.24 or later. +# endif # endif -#endif +#endif /* BUILD_WITH_BROKEN_LDAP */ #include #include