From: Kurt Zeilenga Date: Fri, 25 Feb 2000 19:31:54 +0000 (+0000) Subject: noschemacheck should not disable validation of DNs X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~3176 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2c16d08b7caba573c5849d501241cd0f9c207d1d;p=openldap noschemacheck should not disable validation of DNs --- diff --git a/servers/slapd/tools/slapadd.c b/servers/slapd/tools/slapadd.c index 0acdbdf453..fb4694985d 100644 --- a/servers/slapd/tools/slapadd.c +++ b/servers/slapd/tools/slapadd.c @@ -57,17 +57,17 @@ main( int argc, char **argv ) break; } - if( !noschemacheck ) { - /* make sure the DN is valid */ - if( dn_normalize( e->e_ndn ) == NULL ) { - fprintf( stderr, "%s: bad dn=\"%s\" (line=%d)\n", - progname, e->e_dn, lineno ); - rc = EXIT_FAILURE; - entry_free( e ); - if( continuemode ) continue; - break; - } + /* make sure the DN is valid */ + if( dn_normalize( e->e_ndn ) == NULL ) { + fprintf( stderr, "%s: bad dn=\"%s\" (line=%d)\n", + progname, e->e_dn, lineno ); + rc = EXIT_FAILURE; + entry_free( e ); + if( continuemode ) continue; + break; + } + if( !noschemacheck ) { /* check schema */ if ( schema_check_entry( e ) != 0 ) { fprintf( stderr, "%s: schema violation in entry dn=\"%s\" (line=%d)\n",