/****************************************************************************/ /* ldap_compat.h - Header file to add ldap_*_option support and other */ /* Functions to NON-Netscape Development Kits. */ /* Author: Clayton Donley - donley@wwa.com */ /* Date: Tue Aug 26 13:13:32 CDT 1997 */ /****************************************************************************/ #define ldap_memfree(x) Safefree(x) #ifdef ISODE_LDAP # define ber_free(x,y) Safefree(x) #endif /******************************************************************************* * Changes required for UMich 3.3 library * J.Begg 31-Mar-2000 * * The UMich library includes these definitions, which define option flags in * the 'ld' structure: * LDAP_OPT_DNS 0x00000001 ( use DN & DNS ) * LDAP_OPT_REFERRALS 0x00000002 ( chase referrals ) * LDAP_OPT_RESTART 0x00000004 ( restart if EINTR occurs ) * * The Net::LDAP library tries to make UMich look like Netscape SDK and so * uses the Netscape SDK method for setting certain processing options. * Consequently I have redefined the following values to make them fit with * the UMich usage. *******************************************************************************/ #define LDAP_OPT_DEREF 5 /* Was 2 */ #define LDAP_OPT_SIZELIMIT 6 /* Was 3 */ #define LDAP_OPT_TIMELIMIT 7 /* Was 4 */ /* #define LDAP_OPT_REFERRALS 8 /* Don't redefine it */ #define LDAP_OPT_ON 1 #define LDAP_OPT_OFF 0