mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 08:39:37 -05:00
noschemacheck should not disable validation of DNs
This commit is contained in:
parent
8e6ba5831a
commit
2c16d08b7c
1 changed files with 10 additions and 10 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue