From ae4c85b84f5537194f3fb4dbf11776043df203fc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Julio=20S=C3=A1nchez=20Fern=C3=A1ndez?= Date: Mon, 31 May 1999 15:17:42 +0000 Subject: [PATCH] Fudge oc_kind on synthesized objectclasses so that they are STRUCTURAL instead of ABSTRACT. --- servers/slapd/schemaparse.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/servers/slapd/schemaparse.c b/servers/slapd/schemaparse.c index e68d0dcaec..385f8f6ab1 100644 --- a/servers/slapd/schemaparse.c +++ b/servers/slapd/schemaparse.c @@ -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 ) { -- 2.39.5