diff options
author | Ken Raeburn <raeburn@mit.edu> | 2006-09-20 01:30:25 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@mit.edu> | 2006-09-20 01:30:25 +0000 |
commit | b2239415f139c8822715180716e41b4f9606232e (patch) | |
tree | e8ec19f095ca200dd858dab100b22b690994c65e | |
parent | 52fd212263c4d2af5ee93894517ad790db705f13 (diff) | |
download | krb5-b2239415f139c8822715180716e41b4f9606232e.zip krb5-b2239415f139c8822715180716e41b4f9606232e.tar.gz krb5-b2239415f139c8822715180716e41b4f9606232e.tar.bz2 |
* 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
-rw-r--r-- | src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap.h | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap.h b/src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap.h index df6d4e8..002b948 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 <ldap.h> -/* 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 <k5-thread.h> #include <kdb5.h> |