Make 'schemacheck on' the default.

This commit is contained in:
Kurt Zeilenga 1999-04-29 18:10:40 +00:00
parent 38098bcbc8
commit 01b967244d
4 changed files with 9 additions and 9 deletions

View file

@ -175,14 +175,14 @@ contain a host part and optionally a distinguished name part.
H4: schemacheck { on | off }
This option turns schema checking on or off. If schema
checking is on, entries added or modified will be checked to
ensure they obey the schema rules implied by their object
class(es) as defined by the corresponding objectclass
checking is on, entries added or modified through LDAP operations
will be checked to ensure they obey the schema rules implied
by their object class(es) as defined by the corresponding objectclass
option(s). If schema checking is off this check is not done.
\Default:
E: schemacheck off
E: schemacheck on
H4: sizelimit <integer>

View file

@ -195,7 +195,7 @@ Specify the referral to pass back when
cannot find a local database to handle a request.
.TP
.B schemacheck { on | off }
Turn schema checking on or off. The default is off.
Turn schema checking on or off. The default is on.
.TP
.B sizelimit <integer>
Specify the maximum number of entries to return from a search operation.

View file

@ -359,10 +359,10 @@ read_config( char *fname )
fname, lineno, 0 );
return( 1 );
}
if ( strcasecmp( cargv[1], "on" ) == 0 ) {
global_schemacheck = 1;
} else {
if ( strcasecmp( cargv[1], "off" ) == 0 ) {
global_schemacheck = 0;
} else {
global_schemacheck = 1;
}
/* specify access control info */

View file

@ -10,7 +10,7 @@
#include "slap.h"
struct objclass *global_oc;
int global_schemacheck;
int global_schemacheck = 1; /* schemacheck on is default */
static void oc_usage(void);