diff options
author | Michael Adam <obnox@samba.org> | 2008-02-06 18:16:03 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-02-06 18:16:22 +0100 |
commit | b7989e2ac76f3cffb30d2b41620a8f7d97d2b70b (patch) | |
tree | 17c3f7fb3a82622c863a42341171a170ea02890b /source3/lib | |
parent | 7183e5811e00b650bd271c765562b9dcea8e2d09 (diff) | |
download | samba-b7989e2ac76f3cffb30d2b41620a8f7d97d2b70b.tar.gz samba-b7989e2ac76f3cffb30d2b41620a8f7d97d2b70b.tar.bz2 samba-b7989e2ac76f3cffb30d2b41620a8f7d97d2b70b.zip |
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 8dfc389ff678967a7b16ff1d68f00468a9925275)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/ldap_debug_handler.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/ldap_debug_handler.c b/source3/lib/ldap_debug_handler.c index 88d0c0beec..2181ff014d 100644 --- a/source3/lib/ldap_debug_handler.c +++ b/source3/lib/ldap_debug_handler.c @@ -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 */ } |