From: Kurt Zeilenga Date: Sun, 23 Jan 2000 20:49:17 +0000 (+0000) Subject: Add comment: old schema is OC less category (abstract, struct, aux). X-Git-Tag: UCDATA_2_4~11 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2f22b6bf0caece30cc4d141e06c1b62a732cb110;p=openldap Add comment: old schema is OC less category (abstract, struct, aux). --- diff --git a/servers/slapd/schemaparse.c b/servers/slapd/schemaparse.c index a0b7954a72..e001c98254 100644 --- a/servers/slapd/schemaparse.c +++ b/servers/slapd/schemaparse.c @@ -68,7 +68,12 @@ parse_oc_old( oc->oc_names = ch_calloc( 2, sizeof(char *) ); oc->oc_names[0] = ch_strdup( argv[1] ); oc->oc_names[1] = NULL; + if ( strcasecmp( oc->oc_names[0], "top" ) ) { + /* + * no way to distinguish "auxiliary" from "structural" + * This may lead to future problems. + */ oc->oc_kind = LDAP_SCHEMA_STRUCTURAL; } for ( i = 2; i < argc; i++ ) {