1
0
mirror of https://github.com/samba-team/samba.git synced 2025-09-10 05:44:20 +03:00

Add configure check for LBER_LOG_PRINT_FN - to intercept ldap debug.

Use the resulting HAVE_LBER_LOG_PRINT_FN to determine whether we can
use it in init_ldap_debugging to intercept LDAP debug output and print
it out in the samba logs (controlled with "ldap debug level").

Michael
(This used to be commit 8dfc389ff6)
This commit is contained in:
Michael Adam
2008-02-06 18:16:03 +01:00
parent 7183e5811e
commit b7989e2ac7
2 changed files with 17 additions and 2 deletions

View File

@@ -30,7 +30,7 @@ static void samba_ldap_log_print_fn(LDAP_CONST char *data)
void init_ldap_debugging(void)
{
#if HAVE_LDAP
#if defined(HAVE_LDAP) && defined(HAVE_LBER_LOG_PRINT_FN)
int ret;
int ldap_debug_level = lp_ldap_debug_level();
@@ -48,5 +48,5 @@ void init_ldap_debugging(void)
if (ret != LBER_OPT_SUCCESS) {
DEBUG(10, ("Error setting LBER log print function.\n"));
}
#endif /* HAVE_LDAP */
#endif /* HAVE_LDAP && HAVE_LBER_LOG_PRINT_FN */
}