mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-02 20:10:11 -05:00
ITS#10279 Let client notify when LDAP_DEBUG is disabled but -d specified
This commit is contained in:
parent
8ed07d0b93
commit
6c0a44d1ec
1 changed files with 5 additions and 0 deletions
|
|
@ -1180,6 +1180,7 @@ tool_conn_setup( int dont, void (*private_setup)( LDAP * ) )
|
|||
LDAP *ld = NULL;
|
||||
|
||||
if ( debug ) {
|
||||
#ifdef LDAP_DEBUG
|
||||
if( ber_set_option( NULL, LBER_OPT_DEBUG_LEVEL, &debug )
|
||||
!= LBER_OPT_SUCCESS )
|
||||
{
|
||||
|
|
@ -1192,6 +1193,10 @@ tool_conn_setup( int dont, void (*private_setup)( LDAP * ) )
|
|||
fprintf( stderr,
|
||||
"Could not set LDAP_OPT_DEBUG_LEVEL %d\n", debug );
|
||||
}
|
||||
#else /* !LDAP_DEBUG */
|
||||
fprintf( stderr,
|
||||
"Must compile with LDAP_DEBUG for debugging\n", prog );
|
||||
#endif /* !LDAP_DEBUG */
|
||||
}
|
||||
|
||||
#ifdef SIGPIPE
|
||||
|
|
|
|||
Loading…
Reference in a new issue