Add support for LDAP debug output in Samba log file.
authorMichael Adam <obnox@samba.org>
Mon, 28 Jan 2008 13:47:01 +0000 (14:47 +0100)
committerMichael Adam <obnox@samba.org>
Wed, 6 Feb 2008 17:16:22 +0000 (18:16 +0100)
commit15c25990bd0bfa3145ab3c26d2bdda72993d005c
treea11550c09e8307baceb14394de3201820577a806
parentc2b0c2f2af287bbe8e09bf7467de581691d09014
Add support for LDAP debug output in Samba log file.

Logging of the ldap libraries appears with a [LDAP] prefix
inside the samba logs. This is controlled by two new parameters:

* "ldap debug level" sets the debug level of the ldap libraries.
  It is the bit-field as understood by the openldap server.

* "ldap debug threshold" is the samba debug level at which ldap
  logging appears inside the samba logs.

This probably needs some configure tests since it makes
use of the LBER_OPT_LOG_PRINT_FN option to redirect the
debug output of the ldap libraries.

Michael
source/Makefile.in
source/lib/ldap_debug_handler.c [new file with mode: 0644]
source/param/loadparm.c