]> git.sur5r.net Git - openldap/commitdiff
When a validate function fails from within a tool, report the offending
authorLuke Howard <lukeh@openldap.org>
Thu, 24 Apr 2003 10:18:05 +0000 (10:18 +0000)
committerLuke Howard <lukeh@openldap.org>
Thu, 24 Apr 2003 10:18:05 +0000 (10:18 +0000)
attribute

servers/slapd/entry.c

index 7f28205e3dcbb5ef68408bcf8f765e48d6516114..f854f8b0da65ed0c16150e932cdb3f6a6c8512db 100644 (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 );