Reject old OpenLDAP versions with bugs tickled by this code.
authorKen Raeburn <raeburn@mit.edu>
Fri, 1 Sep 2006 02:51:38 +0000 (02:51 +0000)
committerKen Raeburn <raeburn@mit.edu>
Fri, 1 Sep 2006 02:51:38 +0000 (02:51 +0000)
commitbf6906d3dd8288fa2b31892f561ddd8d6e03a5a9
tree4fc8f77db222d82030cf19b2b3ede3cf331227d7
parent913f504d7d8268b9dba65f936bbb64fba8708125
Reject old OpenLDAP versions with bugs tickled by this code.
Clean up some warnings during the build.

* ldap_misc.c (strptime) [NEED_STRPTIME_PROTO]: Declare, conditionally.
(krb5_ldap_errcode_2_string): Return string, not error code, to fit with DAL
interface spec.
* kdb_ldap.h: Error out for OpenLDAP versions before 2.2.24.
(LDAP_DEPRECATED): Define; openldap-2.3.27 defaults to undefined.
(krb5_ldap_lib_init): Prototype.
(krb5_get_policydn): Declare.
(krb5_ldap_errcode_2_string): Fix return type.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18558 dc483132-0cff-0310-8789-dd5450dbe970
src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap.h
src/plugins/kdb/ldap/libkdb_ldap/ldap_misc.c