From fff5d3de601a7a980cf7554e3f2e6f4d7ceda834 Mon Sep 17 00:00:00 2001 From: Julius Enarusai Date: Mon, 1 Apr 2002 22:31:44 +0000 Subject: [PATCH] Added LDAP_LOG messages --- libraries/libldap/sbind.c | 8 ++++++++ libraries/libldap/search.c | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/libraries/libldap/sbind.c b/libraries/libldap/sbind.c index baa7ac8c59..eb8aaed4bd 100644 --- a/libraries/libldap/sbind.c +++ b/libraries/libldap/sbind.c @@ -62,7 +62,11 @@ ldap_simple_bind( int msgid; struct berval cred; +#ifdef NEW_LOGGING + LDAP_LOG (( "sbind", LDAP_LEVEL_ENTRY, "ldap_simple_bind\n" )); +#else Debug( LDAP_DEBUG_TRACE, "ldap_simple_bind\n", 0, 0, 0 ); +#endif assert( ld != NULL ); assert( LDAP_VALID( ld ) ); @@ -97,7 +101,11 @@ ldap_simple_bind_s( LDAP *ld, LDAP_CONST char *dn, LDAP_CONST char *passwd ) { struct berval cred; +#ifdef NEW_LOGGING + LDAP_LOG (( "sbind", LDAP_LEVEL_ENTRY, "ldap_simple_bind_s\n" )); +#else Debug( LDAP_DEBUG_TRACE, "ldap_simple_bind_s\n", 0, 0, 0 ); +#endif if ( passwd != NULL ) { cred.bv_val = (char *) passwd; diff --git a/libraries/libldap/search.c b/libraries/libldap/search.c index 75eae1cb92..c0bc46df78 100644 --- a/libraries/libldap/search.c +++ b/libraries/libldap/search.c @@ -61,7 +61,11 @@ ldap_search_ext( BerElement *ber; int timelimit; +#ifdef NEW_LOGGING + LDAP_LOG (( "search", LDAP_LEVEL_ENTRY, "ldap_search_ext\n" )); +#else Debug( LDAP_DEBUG_TRACE, "ldap_search_ext\n", 0, 0, 0 ); +#endif assert( ld != NULL ); assert( LDAP_VALID( ld ) ); @@ -179,7 +183,11 @@ ldap_search( { BerElement *ber; +#ifdef NEW_LOGGING + LDAP_LOG (( "search", LDAP_LEVEL_ENTRY, "ldap_search\n" )); +#else Debug( LDAP_DEBUG_TRACE, "ldap_search\n", 0, 0, 0 ); +#endif assert( ld != NULL ); assert( LDAP_VALID( ld ) ); -- 2.39.5