Skip to content
Snippets Groups Projects
Commit 2c16d08b authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

noschemacheck should not disable validation of DNs

parent 8e6ba583
Branches
Tags
No related merge requests found
......@@ -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",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment