]> git.sur5r.net Git - openldap/commitdiff
noschemacheck should not disable validation of DNs
authorKurt Zeilenga <kurt@openldap.org>
Fri, 25 Feb 2000 19:31:54 +0000 (19:31 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 25 Feb 2000 19:31:54 +0000 (19:31 +0000)
servers/slapd/tools/slapadd.c

index 0acdbdf4530ed7f1c827b536e11f9439a057f0c4..fb4694985dff2ad902e16597ba255661709b4a43 100644 (file)
@@ -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",