From 9f4b84b5a3504bab40d192f97be5915fdcdaeefb Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Mon, 5 Mar 2012 21:53:54 +0000 Subject: provide more detailed logging information for ldap_start_tls_s() failures (based on a patch by Mel Flynn) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1626 ef36b2f9-881f-0410-afb5-c4e39611909c --- compat/ldap_compat.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'compat') diff --git a/compat/ldap_compat.h b/compat/ldap_compat.h index 322e232..039932c 100644 --- a/compat/ldap_compat.h +++ b/compat/ldap_compat.h @@ -62,4 +62,12 @@ int ldap_passwd_s(LDAP *ld,struct berval *user,struct berval *oldpw, #define LDAP_SASL_QUIET 2U #endif /* not LDAP_SASL_QUIET */ +/* on some systems LDAP_OPT_DIAGNOSTIC_MESSAGE isn't there but + LDAP_OPT_ERROR_STRING is */ +#ifndef LDAP_OPT_DIAGNOSTIC_MESSAGE +#ifdef LDAP_OPT_ERROR_STRING +#define LDAP_OPT_DIAGNOSTIC_MESSAGE LDAP_OPT_ERROR_STRING +#endif /* LDAP_OPT_ERROR_STRING */ +#endif /* not LDAP_OPT_DIAGNOSTIC_MESSAGE */ + #endif /* COMPAT__LDAP_COMPAT_H */ -- cgit v1.2.2