Added LDAP_LOG messages

This commit is contained in:
Julius Enarusai 2002-04-01 22:31:44 +00:00
parent e30c52dfb7
commit fff5d3de60
2 changed files with 16 additions and 0 deletions

View File

@ -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;

View File

@ -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 ) );