]> git.sur5r.net Git - openldap/commitdiff
Fudge oc_kind on synthesized objectclasses so that they are STRUCTURAL
authorJulio Sánchez Fernández <jsanchez@openldap.org>
Mon, 31 May 1999 15:17:42 +0000 (15:17 +0000)
committerJulio Sánchez Fernández <jsanchez@openldap.org>
Mon, 31 May 1999 15:17:42 +0000 (15:17 +0000)
instead of ABSTRACT.

servers/slapd/schemaparse.c

index e68d0dcaec9e68c16468ed85790bf03e48663ebc..385f8f6ab1b1f51592bec436d912954de5b3db81 100644 (file)
@@ -56,6 +56,9 @@ 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" ) ) {
+               oc->oc_kind = LDAP_SCHEMA_STRUCTURAL;
+       }
        for ( i = 2; i < argc; i++ ) {
                /* required attributes */
                if ( strcasecmp( argv[i], "requires" ) == 0 ) {