Add support for LDAP debug output in Samba log file.
commit3fcef06e4fdf375f4b07e953a5d707dfc226415b
authorMichael Adam <obnox@samba.org>
Mon, 28 Jan 2008 13:47:01 +0000 (28 14:47 +0100)
committerMichael Adam <obnox@samba.org>
Thu, 7 Feb 2008 13:08:11 +0000 (7 14:08 +0100)
tree8cd2cecdfa83af6002e3750bd04749caa684b1f7
parent63b3f2cb410688d2705f53090e7f9638a106daa4
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