From: Luke Howard Date: Thu, 24 Apr 2003 10:18:05 +0000 (+0000) Subject: When a validate function fails from within a tool, report the offending X-Git-Tag: OPENLDAP_REL_ENG_2_2_0ALPHA~255 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=331e6275418bda0735d4952f64d51518881d10a8;p=openldap When a validate function fails from within a tool, report the offending attribute --- diff --git a/servers/slapd/entry.c b/servers/slapd/entry.c index 7f28205e3d..f854f8b0da 100644 --- a/servers/slapd/entry.c +++ b/servers/slapd/entry.c @@ -218,12 +218,12 @@ str2entry( char *s ) if( rc != 0 ) { #ifdef NEW_LOGGING LDAP_LOG( OPERATION, ERR, - "str2entry: invalid value for syntax %s\n", - ad->ad_type->sat_syntax->ssyn_oid, 0, 0 ); + "str2entry: invalid value for attribute %s (syntax %s)\n", + ad->ad_cname.bv_val, ad->ad_type->sat_syntax->ssyn_oid, 0 ); #else Debug( LDAP_DEBUG_ANY, - "str2entry: invalid value for syntax %s\n", - ad->ad_type->sat_syntax->ssyn_oid, 0, 0 ); + "str2entry: invalid value for attribute %s (syntax %s)\n", + ad->ad_cname.bv_val, ad->ad_type->sat_syntax->ssyn_oid, 0 ); #endif entry_free( e ); free( vals[0].bv_val );