Use ldap_error(LDAP *, "your error message string") API.
it is something like perror("your error message")
"Wald, Matthias" wrote:
>
> In the ldap api is written that some functions set the error
> parameters in the session handle. How can I get them?
> I am able to get the errors via ldap_parse_result but with
> the session handle ?
>
> Thanks for any help!
>
> Ciao!
> Matthias