Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

The following table shows the LDAP error handling functions with a description of the purpose of each.

Programming element Description

ldap_err2string

This function converts a numeric LDAP error code into a character string describing the error.

ldap_result2error

This function parses a message and returns the error code.

LdapGetLastError

This function retrieves the last error code returned by an LDAP call.

LdapMapErrorToWin32

This function translates an LdapErrorvalue to the closest Microsoft® Win32® error code.