Michael Harnois <mharnois(a)willinet.net> writes:
On 07 Jun 1999 07:38:04 -0500, wmperry(a)aventail.com (William M.
Perry) said:
> ("LDAP error",
> build_string (ldap_err2string (ldap_get_lderrno (ld, NULL, NULL))));
If I read my files correctly the function that is here called
ldap_get_lderrno is in OpenLDAP 2 called ldap_result2error. I also
noticed in other examples in the OpenLDAP source which used the function
that the third argument is 0 rather than NULL.
Specifically, we use signal_ldap_error, which needs the errno in cases like
ldap_set_option or ldap_search, neither of which has an LDAPMessage
associated with it yet.
Does OpenLDAP not allow _any_ way to get at the 'LDAP *'s errno?
-bp