When a validate function fails from within a tool, report the offending

attribute
This commit is contained in:
Luke Howard 2003-04-24 10:18:05 +00:00
parent fded00210e
commit 331e627541

View File

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