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.
well, ldap_result2error only gets you some of the cases where an error
occurs. What happens if you want to see why ldap_init() failed?
-Bill P.