From: Kurt Zeilenga Date: Thu, 29 Apr 1999 18:10:40 +0000 (+0000) Subject: Make 'schemacheck on' the default. X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~118 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=01b967244d6b85c7dcf153a38578ade60d377c63;p=openldap Make 'schemacheck on' the default. --- diff --git a/doc/guide/slapdconfig.sdf b/doc/guide/slapdconfig.sdf index 34e37c2067..f151393e97 100644 --- a/doc/guide/slapdconfig.sdf +++ b/doc/guide/slapdconfig.sdf @@ -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 diff --git a/doc/man/man5/slapd.conf.5 b/doc/man/man5/slapd.conf.5 index a3acdefa15..4f7ee624a0 100644 --- a/doc/man/man5/slapd.conf.5 +++ b/doc/man/man5/slapd.conf.5 @@ -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 Specify the maximum number of entries to return from a search operation. diff --git a/servers/slapd/config.c b/servers/slapd/config.c index 153f9d21f4..100400e9f3 100644 --- a/servers/slapd/config.c +++ b/servers/slapd/config.c @@ -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 */ diff --git a/servers/slapd/schemaparse.c b/servers/slapd/schemaparse.c index 900263c84a..23efb7fbad 100644 --- a/servers/slapd/schemaparse.c +++ b/servers/slapd/schemaparse.c @@ -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);