mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
fix logging macros (thanks Mei)
This commit is contained in:
parent
c8326ee004
commit
e565505f21
@ -311,7 +311,7 @@ slap_sasl_authorize(
|
||||
#ifdef NEW_LOGGING
|
||||
LDAP_LOG(( "sasl", LDAP_LEVEL_ENTRY,
|
||||
"slap_sasl_authorize: conn %d authorization allowed\n",
|
||||
(long)(conn ? conn->c_connid : -1 ) );
|
||||
(long)(conn ? conn->c_connid : -1 ) ));
|
||||
#else
|
||||
Debug( LDAP_DEBUG_TRACE, "SASL Authorize [conn=%ld]: "
|
||||
" authorization allowed\n",
|
||||
|
@ -142,7 +142,7 @@ int slap_sasl_regexp_config( const char *match, const char *replace )
|
||||
if ( rc ) {
|
||||
#ifdef NEW_LOGGING
|
||||
LDAP_LOG(( "sasl", LDAP_LEVEL_ERR,
|
||||
"slap_sasl_regexp_config: \"%s\" could not be compiled.\n"
|
||||
"slap_sasl_regexp_config: \"%s\" could not be compiled.\n",
|
||||
reg->match ));
|
||||
#else
|
||||
Debug( LDAP_DEBUG_ANY,
|
||||
@ -429,7 +429,7 @@ int slap_sasl_match( char *rule, char *assertDN, char *authc )
|
||||
|
||||
#ifdef NEW_LOGGING
|
||||
LDAP_LOG(( "sasl", LDAP_LEVEL_ENTRY,
|
||||
"slap_sasl_match: comparing DN %s to rule %s\n", assertDN, rule );
|
||||
"slap_sasl_match: comparing DN %s to rule %s\n", assertDN, rule ));
|
||||
#else
|
||||
Debug( LDAP_DEBUG_TRACE,
|
||||
"===>slap_sasl_match: comparing DN %s to rule %s\n", assertDN, rule, 0 );
|
||||
@ -640,7 +640,7 @@ int slap_sasl_authorized( char *authcDN, char *authzDN )
|
||||
DONE:
|
||||
#ifdef NEW_LOGGING
|
||||
LDAP_LOG(( "sasl", LDAP_LEVEL_ENTRY,
|
||||
"slap_sasl_authorized: return %s\n", rc ));
|
||||
"slap_sasl_authorized: return %d\n", rc ));
|
||||
#else
|
||||
Debug( LDAP_DEBUG_TRACE, "<== slap_sasl_authorized: return %d\n",rc,0,0 );
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user