[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: struct ldap empty
At 08:17 AM 10/27/98 -0500, James FitzGibbon wrote:
>On Tue, 27 Oct 1998, Stuart Lynne wrote:
>> I don't know what other implications there are with adding
>> LDAP_OPT_SIZELIMIT (what other Netscapism's are people using it to select?)
>> so I havn't attempted to add LDAP_OPT_SIZELIMIT to ldap.h.
>This would be IMHO a "bad thing".
Making LDAP structure opaque and providing various accessor
functions is part of the ongoing work towards LDAPv3 and
the current IETF LDAP C API (01) specification.
Applications wanting to support both Umich style (rfc1823)
and the draft should #ifdef as follows:
#if defined(LDAP_API_VERSION) && LDAP_API_VERSION > 1823
ldap_get_option(LDAP_OPT_ERROR_NUMBER, &err)
#else
ld->...
#endif
If you also wanted to be compatible with netscape API, I'd
recommend using autoconf to detect the existance of some netscape
specific function like ldap_get_lderrrno() and then adding an
#elif HAVE_LDAP_GET_ERRNO
...
This DOES NOT work yet in -devel. It will eventually, be
patient. As I pointed out before, applications developers
wanting a stable interface should use -stable!
Kurt