Skip to content
Snippets Groups Projects
Commit 0905d723 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Add additional logging

parent 300e9f18
No related branches found
No related tags found
No related merge requests found
...@@ -327,6 +327,10 @@ int ldap_pvt_sasl_install( Sockbuf *sb, void *ctx_arg ) ...@@ -327,6 +327,10 @@ int ldap_pvt_sasl_install( Sockbuf *sb, void *ctx_arg )
if ( !ber_sockbuf_ctrl( sb, LBER_SB_OPT_HAS_IO, if ( !ber_sockbuf_ctrl( sb, LBER_SB_OPT_HAS_IO,
&ldap_pvt_sockbuf_io_sasl ) ) &ldap_pvt_sockbuf_io_sasl ) )
{ {
#ifdef LDAP_DEBUG
ber_sockbuf_add_io( sb, &ber_sockbuf_io_debug,
LBER_SBIOD_LEVEL_APPLICATION, (void *)"sasl_" );
#endif
ber_sockbuf_add_io( sb, &ldap_pvt_sockbuf_io_sasl, ber_sockbuf_add_io( sb, &ldap_pvt_sockbuf_io_sasl,
LBER_SBIOD_LEVEL_APPLICATION, ctx_arg ); LBER_SBIOD_LEVEL_APPLICATION, ctx_arg );
} }
......
...@@ -269,6 +269,11 @@ ldap_int_open_connection( ...@@ -269,6 +269,11 @@ ldap_int_open_connection(
srv->lud_host, addr, port, async ); srv->lud_host, addr, port, async );
if ( rc == -1 ) return rc; if ( rc == -1 ) return rc;
#ifdef LDAP_DEBUG
ber_sockbuf_add_io( conn->lconn_sb, &ber_sockbuf_io_debug,
LBER_SBIOD_LEVEL_PROVIDER, (void *)"tcp_" );
#endif
ber_sockbuf_add_io( conn->lconn_sb, &ber_sockbuf_io_tcp, ber_sockbuf_add_io( conn->lconn_sb, &ber_sockbuf_io_tcp,
LBER_SBIOD_LEVEL_PROVIDER, NULL ); LBER_SBIOD_LEVEL_PROVIDER, NULL );
...@@ -282,6 +287,11 @@ ldap_int_open_connection( ...@@ -282,6 +287,11 @@ ldap_int_open_connection(
rc = ldap_connect_to_path( ld, conn->lconn_sb, rc = ldap_connect_to_path( ld, conn->lconn_sb,
srv->lud_host, async ); srv->lud_host, async );
if ( rc == -1 ) return rc; if ( rc == -1 ) return rc;
#ifdef LDAP_DEBUG
ber_sockbuf_add_io( conn->lconn_sb, &ber_sockbuf_io_debug,
LBER_SBIOD_LEVEL_PROVIDER, (void *)"ipc_" );
#endif
ber_sockbuf_add_io( conn->lconn_sb, &ber_sockbuf_io_fd, ber_sockbuf_add_io( conn->lconn_sb, &ber_sockbuf_io_fd,
LBER_SBIOD_LEVEL_PROVIDER, NULL ); LBER_SBIOD_LEVEL_PROVIDER, NULL );
...@@ -304,9 +314,10 @@ ldap_int_open_connection( ...@@ -304,9 +314,10 @@ ldap_int_open_connection(
ber_sockbuf_add_io( conn->lconn_sb, &ber_sockbuf_io_readahead, ber_sockbuf_add_io( conn->lconn_sb, &ber_sockbuf_io_readahead,
LBER_SBIOD_LEVEL_PROVIDER, NULL ); LBER_SBIOD_LEVEL_PROVIDER, NULL );
#ifdef LDAP_DEBUG #ifdef LDAP_DEBUG
ber_sockbuf_add_io( conn->lconn_sb, &ber_sockbuf_io_debug, ber_sockbuf_add_io( conn->lconn_sb, &ber_sockbuf_io_debug,
INT_MAX, NULL ); INT_MAX, (void *)"ldap_" );
#endif #endif
#ifdef HAVE_TLS #ifdef HAVE_TLS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment