mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
Fix up last commit
This commit is contained in:
parent
58a72b915a
commit
b4bb3b5bf8
@ -37,7 +37,7 @@ objectClass ( 2.5.20.2 NAME 'collectiveAttributes' AUXILIARY )
|
||||
# The collectiveAttributeSubentry operational attribute identifies all
|
||||
# collective attribute subentries that affect the entry.
|
||||
#
|
||||
#objectClass ( 2.5.18.12 NAME 'collectiveAttributeSubentry'
|
||||
#attributeType ( 2.5.18.12 NAME 'collectiveAttributeSubentry'
|
||||
# EQUALITY distinguishedNameMatch
|
||||
# SYNTAX 1.3.6.1.4.1.1466.115.121.1.12
|
||||
# USAGE directoryOperation NO-USER-MODIFICATION )
|
||||
@ -48,7 +48,7 @@ objectClass ( 2.5.20.2 NAME 'collectiveAttributes' AUXILIARY )
|
||||
# collective attributes to be excluded from an entry. It MAY appear in
|
||||
# any entry and MAY have multiple values.
|
||||
#
|
||||
#objectClass ( 2.5.18.7 NAME 'collectiveExclusions'
|
||||
#attributeType ( 2.5.18.7 NAME 'collectiveExclusions'
|
||||
# EQUALITY objectIdentifierMatch
|
||||
# SYNTAX 1.3.6.1.4.1.1466.115.121.1.38
|
||||
# USAGE directoryOperation )
|
||||
|
@ -304,14 +304,11 @@ attributetype ( 2.5.4.54 NAME 'dmdName'
|
||||
|
||||
# Standard object classes from RFC2256
|
||||
|
||||
objectclass ( 2.5.6.0 NAME 'top'
|
||||
DESC 'RFC2256: most superior class in superclass chain of all objects'
|
||||
ABSTRACT MUST objectClass )
|
||||
|
||||
objectclass ( 2.5.6.1 NAME 'alias'
|
||||
DESC 'RFC2256: an alias'
|
||||
SUP top STRUCTURAL
|
||||
MUST aliasedObjectName )
|
||||
# system schema
|
||||
#objectclass ( 2.5.6.1 NAME 'alias'
|
||||
# DESC 'RFC2256: an alias'
|
||||
# SUP top STRUCTURAL
|
||||
# MUST aliasedObjectName )
|
||||
|
||||
objectclass ( 2.5.6.2 NAME 'country'
|
||||
DESC 'RFC2256: a country'
|
||||
@ -455,21 +452,6 @@ objectclass ( 2.5.6.20 NAME 'dmd'
|
||||
street $ postOfficeBox $ postalCode $ postalAddress $
|
||||
physicalDeliveryOfficeName $ st $ l $ description ) )
|
||||
|
||||
#
|
||||
# Object Classes from RFC 2252
|
||||
#
|
||||
|
||||
objectclass ( 1.3.6.1.4.1.1466.101.120.111 NAME 'extensibleObject'
|
||||
DESC 'RFC2252: extensible object'
|
||||
SUP top AUXILIARY )
|
||||
|
||||
objectclass ( 2.5.20.1 NAME 'subschema'
|
||||
DESC 'RFC2252: controlling subschema (sub)entry'
|
||||
AUXILIARY
|
||||
MAY ( dITStructureRules $ nameForms $ ditContentRules $
|
||||
objectClasses $ attributeTypes $ matchingRules $
|
||||
matchingRuleUse ) )
|
||||
|
||||
#
|
||||
# Object Classes from RFC 2587
|
||||
#
|
||||
@ -554,23 +536,6 @@ objectclass ( 1.3.6.1.1.3.1 NAME 'uidObject'
|
||||
DESC 'RFC2377: uid object'
|
||||
SUP top AUXILIARY MUST uid )
|
||||
|
||||
#
|
||||
# From draft-zeilenga-ldap-namedref-00.txt
|
||||
# used to represent referrals in the directory
|
||||
|
||||
objectclass ( 2.16.840.1.113730.3.2.6 NAME 'referral'
|
||||
DESC 'namedref: named subordinate referral'
|
||||
SUP top STRUCTURAL MUST ref )
|
||||
|
||||
#
|
||||
# LDAP/X.500 subentry schema
|
||||
# draft-zeilenga-ldap-subentry-xx.txt
|
||||
|
||||
objectclass ( 2.5.20.0 NAME 'subentry'
|
||||
SUP top STRUCTURAL
|
||||
MUST ( cn $ subtreeSpecification ) )
|
||||
|
||||
|
||||
#
|
||||
# LDAPsubEntry
|
||||
# deprecated!
|
||||
@ -580,14 +545,6 @@ objectclass ( 2.16.840.1.113719.2.142.6.1.1
|
||||
OBSOLETE
|
||||
SUP top STRUCTURAL MAY cn )
|
||||
|
||||
#
|
||||
# OpenLDAProotDSE
|
||||
# likely to change!
|
||||
objectclass ( 1.3.6.1.4.1.4203.1.4.1
|
||||
NAME ( 'OpenLDAProotDSE' 'LDAProotDSE' )
|
||||
DESC 'OpenLDAP Root DSE object'
|
||||
SUP top STRUCTURAL MAY cn )
|
||||
|
||||
#
|
||||
# From COSINE Pilot
|
||||
#
|
||||
|
@ -150,7 +150,7 @@ static struct slap_schema_oc_map {
|
||||
0, offsetof(struct slap_internal_schema, si_oc_subentry) },
|
||||
{ "subschema", "( 2.5.20.1 NAME 'subschema' "
|
||||
"DESC 'RFC2252: controlling subschema (sub)entry' "
|
||||
"AUXILIARY"
|
||||
"AUXILIARY "
|
||||
"MAY ( dITStructureRules $ nameForms $ ditContentRules $ "
|
||||
"objectClasses $ attributeTypes $ matchingRules $ "
|
||||
"matchingRuleUse ) )",
|
||||
@ -577,36 +577,37 @@ slap_schema_load( void )
|
||||
}
|
||||
|
||||
for( i=0; oc_map[i].ssom_name; i++ ) {
|
||||
LDAPObjectClass *oc;
|
||||
int code;
|
||||
const char *err;
|
||||
if( oc_map[i].ssom_defn != NULL ) {
|
||||
LDAPObjectClass *oc;
|
||||
int code;
|
||||
const char *err;
|
||||
|
||||
oc = ldap_str2objectclass( oc_map[i].ssom_defn, &code, &err,
|
||||
LDAP_SCHEMA_ALLOW_ALL );
|
||||
if ( !oc ) {
|
||||
fprintf( stderr, "slap_schema_load: "
|
||||
"%s: %s before %s\n",
|
||||
oc_map[i].ssom_name, ldap_scherr2str(code), err );
|
||||
return code;
|
||||
oc = ldap_str2objectclass( oc_map[i].ssom_defn, &code, &err,
|
||||
LDAP_SCHEMA_ALLOW_ALL );
|
||||
if ( !oc ) {
|
||||
fprintf( stderr, "slap_schema_load: "
|
||||
"%s: %s before %s\n",
|
||||
oc_map[i].ssom_name, ldap_scherr2str(code), err );
|
||||
return code;
|
||||
}
|
||||
|
||||
if ( oc->oc_oid == NULL ) {
|
||||
fprintf( stderr, "slap_schema_load: "
|
||||
"%s: objectclass has no OID\n",
|
||||
oc_map[i].ssom_name );
|
||||
return LDAP_OTHER;
|
||||
}
|
||||
|
||||
code = oc_add(oc,&err);
|
||||
if ( code ) {
|
||||
fprintf( stderr, "slap_schema_load: "
|
||||
"%s: %s: \"%s\"\n",
|
||||
oc_map[i].ssom_name, scherr2str(code), err);
|
||||
return code;
|
||||
}
|
||||
|
||||
ldap_memfree(oc);
|
||||
}
|
||||
|
||||
if ( oc->oc_oid == NULL ) {
|
||||
fprintf( stderr, "slap_schema_load: "
|
||||
"%s: objectclass has no OID\n",
|
||||
oc_map[i].ssom_name );
|
||||
return LDAP_OTHER;
|
||||
}
|
||||
|
||||
code = oc_add(oc,&err);
|
||||
if ( code ) {
|
||||
fprintf( stderr, "slap_schema_load: "
|
||||
"%s: %s: \"%s\"\n",
|
||||
oc_map[i].ssom_name, scherr2str(code), err);
|
||||
return code;
|
||||
}
|
||||
|
||||
ldap_memfree(oc);
|
||||
return 0;
|
||||
}
|
||||
|
||||
return LDAP_SUCCESS;
|
||||
|
Loading…
Reference in New Issue
Block a user