From d7af95962181f3e1fcb320f4e1356d50daf071c3 Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Sat, 12 Dec 2015 16:56:46 +1000 Subject: [PATCH] * define LDAP_DEBUG_CONNS macro --- src/ldapauth.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ldapauth.c b/src/ldapauth.c index 88cd459..4914ac9 100644 --- a/src/ldapauth.c +++ b/src/ldapauth.c @@ -10,6 +10,10 @@ #include "config.h" +#ifndef LDAP_DEBUG_CONNS +#define LDAP_DEBUG_CONNS 0x8 +#endif + /** * @brief escape chars, having special meaning in ldap search filter * @returns >= 0 if escaped successfully, -1 on error @@ -68,7 +72,7 @@ oal_connect(LDAP ** ld, if (config->bindtimeout) tv.tv_sec = config->bindtimeout; if (config->debug) - ldapdebug = 256; /* TODO: LDAP_DEBUG_CONNS */ + ldapdebug = LDAP_DEBUG_CONNS; /* hardcoded options */ if (ldap_set_option(*ld, LDAP_OPT_PROTOCOL_VERSION, &ldapver) != LDAP_OPT_SUCCESS) {