mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-23 08:09:34 -05:00
Fudge oc_kind on synthesized objectclasses so that they are STRUCTURAL
instead of ABSTRACT.
This commit is contained in:
parent
2b69b706de
commit
ae4c85b84f
1 changed files with 3 additions and 0 deletions
|
|
@ -56,6 +56,9 @@ parse_oc_old(
|
||||||
oc->oc_names = ch_calloc( 2, sizeof(char *) );
|
oc->oc_names = ch_calloc( 2, sizeof(char *) );
|
||||||
oc->oc_names[0] = ch_strdup( argv[1] );
|
oc->oc_names[0] = ch_strdup( argv[1] );
|
||||||
oc->oc_names[1] = NULL;
|
oc->oc_names[1] = NULL;
|
||||||
|
if ( strcasecmp( oc->oc_names[0], "top" ) ) {
|
||||||
|
oc->oc_kind = LDAP_SCHEMA_STRUCTURAL;
|
||||||
|
}
|
||||||
for ( i = 2; i < argc; i++ ) {
|
for ( i = 2; i < argc; i++ ) {
|
||||||
/* required attributes */
|
/* required attributes */
|
||||||
if ( strcasecmp( argv[i], "requires" ) == 0 ) {
|
if ( strcasecmp( argv[i], "requires" ) == 0 ) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue