[Date Prev][Date Next] [Chronological] [Thread] [Top]

Fwd: How to turn on logging for ldap library



When I turn on debugging with ldap_set_option and lutil_debug_file,
searches now crash with this:

ldap_bind
ldap_simple_bind
ldap_sasl_bind
ldap_send_initial_request
ldap_new_connection
ldap_int_open_connection
ldap_connect_to_host: TCP (null):7
ldap_new_socket: 0
ldap_prepare_socket: 0
***CRASH***

It works fine without debugging though, no crash. Any ideas?

- Jeremiah

On 4/28/06, Howard Chu <hyc@symas.com> wrote:
The application that links to libldap must enable logging with an
ldap_set_option() call.  By default it will go to stderr, but you can
set an additional destination using lutil_debug_file().

--
  -- Howard Chu
  Chief Architect, Symas Corp.  http://www.symas.com
  Director, Highland Sun        http://highlandsun.com/hyc
  OpenLDAP Core Team            http://www.openldap.org/project/