Prints a specified message and the current LDAP error message to standard error. This function has been deprecated; use the ldap_err2string function.
#include <ldap.h>
void ldap_perror (
LDAP *ld,
const char *msg);
(IN) Points to the handle for the LDAP session.
(IN) Points to the message that is displayed before the LDAP error message.