[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: sendmail-8.9.2 and openldap-1.1.*



At 09:05 AM 1/27/99 -0800, Kurt D. Zeilenga wrote:	
>>>Unfortunately LDAP_OPT_DEREF, LDAP_OPT_TIMELIMIT, and LDAP_OPT_SIZELIMIT
>>>aren't defined anywhere in the header files for sendmail or openldap.
>LDAP_OPT_DEREF is defined in ldap.h (pretty much any flavor).
>Same goes for REFERRAL and RESTART.   LDAP_OPT_TIMELIMIT/SIZELIMIT
>are post U-Mich defines.

Sorry, a slight mistake (not finishing my morning coke before replying).

LDAP_OPT_DEREF is not a bit option and hence not defined in U-Mich'ish of ldap.h.
U-Mich API has LDAP_OPT_{DNS,REFERRALS,RESTART}.

The provided check, though, does work.

>
>#if defined(LDAP_API_VERSION)
>	/* LDAP_API_VERSION must be defined per the current draft spec
>	** it's value will be assigned RFC number.  However, as
>	** no RFC is defined, it's value is currently implementation
>	** specific (though I would hope it's value is greater than 1823).
>	** In OpenLDAP 2.x-devel, its 2000 + the draft number, ie 2002.
>	*/
>#elif defined( LDAP_OPT_SIZELIMIT )
>	/*
>	** Netscape SDK w/ ldap_set_option, ldap_get_option
>	*/
>#else
>	/* U-Mich/OpenLDAP 1.x API */
>	/* RFC-1823 w/ changes */
>#endif
>