summaryrefslogtreecommitdiffstats
path: root/contrib/sendmail/src/ldap_map.h
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-02-07 09:40:41 +0000
committerpeter <peter@FreeBSD.org>1999-02-07 09:40:41 +0000
commitab5a9cbab45b524bd67604dcdbe60870697848d2 (patch)
tree3d5cbf462390cf6c6ed3bc71b85e84ffae40948f /contrib/sendmail/src/ldap_map.h
parent7a0029ee87f579bf3090db5b0fba045030753bbb (diff)
parent19c8fca2df7a6f39e5208229f428ec269fb3adbf (diff)
downloadFreeBSD-src-ab5a9cbab45b524bd67604dcdbe60870697848d2.zip
FreeBSD-src-ab5a9cbab45b524bd67604dcdbe60870697848d2.tar.gz
This commit was generated by cvs2svn to compensate for changes in r43730,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'contrib/sendmail/src/ldap_map.h')
-rw-r--r--contrib/sendmail/src/ldap_map.h22
1 files changed, 21 insertions, 1 deletions
diff --git a/contrib/sendmail/src/ldap_map.h b/contrib/sendmail/src/ldap_map.h
index 97eb29e..7d40329 100644
--- a/contrib/sendmail/src/ldap_map.h
+++ b/contrib/sendmail/src/ldap_map.h
@@ -14,7 +14,7 @@
** Please go to him for support -- since I (Eric) don't run LDAP, I
** can't help you at all.
**
-** @(#)ldap_map.h 8.10 (Berkeley) 9/14/1998
+** @(#)ldap_map.h 8.12 (Berkeley) 2/2/1999
*/
#ifndef _LDAP_MAP_H
@@ -68,4 +68,24 @@ typedef struct ldap_map_struct LDAP_MAP_STRUCT;
# define DEFAULT_LDAP_MAP_LDAP_OPTIONS 0
#endif /* LDAP_REFERRALS */
+/*
+** ldap_init(3) is broken in Umich 3.x and OpenLDAP 1.0/1.1.
+** Use the lack of LDAP_OPT_SIZELIMIT to detect old API implementations
+** and assume (falsely) that all old API implementations are broken.
+** (OpenLDAP 1.2 and later have a working ldap_init(), add -DUSE_LDAP_INIT)
+*/
+
+#if defined(LDAP_OPT_SIZELIMIT) && !defined(USE_LDAP_INIT)
+# define USE_LDAP_INIT 1
+#endif
+
+/*
+** LDAP_OPT_SIZELIMIT is not defined under Umich 3.x nor OpenLDAP 1.x,
+** hence ldap_set_option() must not exist.
+*/
+
+#if defined(LDAP_OPT_SIZELIMIT) && !defined(USE_LDAP_SET_OPTION)
+# define USE_LDAP_SET_OPTION 1
+#endif
+
#endif /* _LDAP_MAP_H */
OpenPOWER on IntegriCloud