From: Julius Enarusai Date: Mon, 1 Apr 2002 22:31:44 +0000 (+0000) Subject: Added LDAP_LOG messages X-Git-Tag: OPENLDAP_REL_ENG_2_MP~274 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fff5d3de601a7a980cf7554e3f2e6f4d7ceda834;p=openldap Added LDAP_LOG messages --- 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 ) );