[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: RE: OpenLDAP & Howes/Smith Programming LDAP book...
Please note that examples in this book are designed to be used with
the Netscape/Mozilla API, not the U-Mich/OpenLDAP RFC-1823ish APIs. There
are numerous syntax and semantics differences between these APIs
which, IIRC, the book does outline. They are also discussed in past postings
of this list (which are available in the archives). One of those differences is the
availability of the ldap_memfree() routine, this (in general) may be resolved
by adding:
#define ldap_memfree(x) free((x))
to your code.
Kurt
At 01:25 AM 7/3/00 -0700, Ovanes Manucharyan wrote:
>While on the topic and at the same time not on the topic, can I ask
>if anyone has encountered the ldap_memfree error.
>
>It seems that the very same examples from the book, don't compile
>unless the lines containing ldap_memfree are commented out.
>Is there any workaround for that?
>
>Ovanes
>
>On Sun, 2 Jul 2000 22:26:05 -0400 MC <mcruz@rochester.rr.com> wrote:
>
>> Thanks Allan,
>>
>> This did the trick.
>>
>> MCruz
>>
>> -----Original Message-----
>> From: Allan E Johannesen [mailto:aej@WPI.EDU]
>> Sent: Sunday, July 02, 2000 6:20 PM
>> To: MC
>> Subject: OpenLDAP & Howes/Smith Programming LDAP book...
>>
>>
>> >>>>> "mcruz" == MC <mcruz@rochester.rr.com> writes:
>>
>> mcruz> Anyone has any clues?
>>
>> When linking, are you using -lldap -llber to access the libraries? { maybe
>> prefixed by -L/path/to/libraries }
>>