Introduction
We want to store the schema into ADS as any other entries. We have to define the minimum set of ObjectClasses an AttributeTypes needed to be able to bootstrap the schema.
The new AttributesType will use the OIDs 1.3.6.1.4.1.18060.1.1.0.3.N
The new ObjectClasses will use the OIDs 1.3.6.1.4.1.18060.1.1.0.4.N
Here, the prefix 1.3.6.1.4.1.18060 is the one declared to IANA to represent the Apache Foundation and the next 1.1 values are used specifically for Apache Directory.
ObjectClasses
The ObjectClass element is described in RFC 4512 :
<ObjectClassDescription> ::= <LPAREN> <SP> <numericoid> <ocparameters> <extensions> <WSP> <RPAREN> // Each parameters should not be seen more than once <ocparameters> ::= ( <SP> "NAME" <SP> <qdescrs> | <SP> "DESC" <SP> <qdstring> | <SP> "OBSOLETE" | <SP> "SUP" <SP> <oids> | <SP> ( "ABSTRACT" | "STRUCTURAL" | "AUXILIARY" ) | <SP> "MUST" <SP> <oids> | <SP> "MAY" <SP> <oids> )+
Here we have some elements which are already in the schema :
attributetype ( 2.5.4.0 NAME 'objectClass' DESC 'RFC2256: object classes of the entity' EQUALITY objectIdentifierMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.38 )
attributetype ( 2.5.4.13 NAME 'description' DESC 'RFC2256: descriptive information' EQUALITY caseIgnoreMatch SUBSTR caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
attributetype ( 2.5.4.41 NAME 'name' DESC 'RFC2256: common supertype of name attributes' EQUALITY caseIgnoreMatch SUBSTR caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{32768} )
The other ones must be defined. Here is a table grouping all the missing elements :
Name |
OID |
Desc |
Sup |
Equality |
Ordering |
Substr |
Syntax |
SingleValue |
Collective |
NoUserModification |
Usage |
---|---|---|---|---|---|---|---|---|---|---|---|
obsolete |
1.3.6.1.4.1.18060.1.1.0.3.1 |
The type is obsolete |
- |
BooleanMatch |
- |
- |
Boolean |
yes |
- |
yes |
dSAOperation |
sup |
1.3.6.1.4.1.18060.1.1.0.3.2 |
The list of superior |
- |
NamesOrOidsMatch |
- |
- |
NamesOrOids |
no |
- |
yes |
dSAOperation |
must |
1.3.6.1.4.1.18060.1.1.0.3.3 |
The list of mandatory AT |
- |
NamesOrOidsMatch |
- |
- |
NamesOrOids |
no |
- |
yes |
dSAOperation |
may |
1.3.6.1.4.1.18060.1.1.0.3.4 |
The list of authorized AT |
- |
NamesOrOidsMatch |
- |
- |
NamesOrOids |
no |
- |
yes |
dSAOperation |
type |
1.3.6.1.4.1.18060.1.1.0.3.5 |
The ObjectClass type |
- |
TypeMatch |
- |
- |
Type |
yes |
- |
yes |
dSAOperation |
AttributeType
The AttributeType element is described in RFC 4512 :
<AttributeTypeDescription> = <LPAREN> <WSP> <numericoid> <atparameters> <extensions> <WSP> <RPAREN> // Each parameters should not be seen more than once <atparameters> ::= <SP> "NAME" <SP> <qdescrs> | <SP> "DESC" <SP> qdstring | <SP> "OBSOLETE" | <SP> "SUP" <SP> <oid> | <SP> "EQUALITY" <SP> <oid> | <SP> "ORDERING" <SP> <oid> | <SP> "SUBSTR" <SP> <oid> | <SP> "SYNTAX" <SP> <noidlen> | <SP> "SINGLE-VALUE" | <SP> "COLLECTIVE" | <SP> "NO-USER-MODIFICATION" | <SP> "USAGE" <SP> <usage>
Here we have some elements which are already in the schema :
attributetype ( 2.5.4.13 NAME 'description' DESC 'RFC2256: descriptive information' EQUALITY caseIgnoreMatch SUBSTR caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
attributetype ( 2.5.4.41 NAME 'name' DESC 'RFC2256: common supertype of name attributes' EQUALITY caseIgnoreMatch SUBSTR caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{32768} )
The other ones must be defined. Here is a table grouping all the missing elements :
Name |
OID |
Desc |
Sup |
Equality |
Ordering |
Substr |
Syntax |
SingleValue |
Collective |
NoUserModification |
Usage |
---|---|---|---|---|---|---|---|---|---|---|---|
obsolete |
1.3.6.1.4.1.18060.1.1.0.3.6 |
The type is obsolete |
- |
BooleanMatch |
- |
- |
Boolean |
yes |
- |
yes |
dSAOperation |
sup |
1.3.6.1.4.1.18060.1.1.0.3.7 |
The list of superior |
- |
nameOrOidMatch |
- |
- |
NameOrOid |
yes |
- |
yes |
dSAOperation |
equality |
1.3.6.1.4.1.18060.1.1.0.3.8 |
Equality matching rule |
- |
nameOrOidMatch |
- |
- |
NameOrOid |
yes |
- |
yes |
dSAOperation |
ordering |
1.3.6.1.4.1.18060.1.1.0.3.9 |
Ordering matching rule |
- |
nameOrOidMatch |
- |
- |
NameOrOid |
yes |
- |
yes |
dSAOperation |
substr |
1.3.6.1.4.1.18060.1.1.0.3.10 |
Substring matching rule |
- |
nameOrOidMatch |
- |
- |
NameOrOid |
yes |
- |
yes |
dSAOperation |
syntax |
1.3.6.1.4.1.18060.1.1.0.3.11 |
The attribute syntax |
- |
nameOrOidMatch |
- |
- |
NameOrOid |
yes |
- |
yes |
dSAOperation |
single-value |
1.3.6.1.4.1.18060.1.1.0.3.12 |
The attribute is single valued |
- |
BooleanMatch |
- |
- |
Boolean |
yes |
- |
yes |
dSAOperation |
collective |
1.3.6.1.4.1.18060.1.1.0.3.13 |
The attribute is collective |
- |
BooleanMatch |
- |
- |
Boolean |
yes |
- |
yes |
dSAOperation |
no-user-modification |
1.3.6.1.4.1.18060.1.1.0.3.14 |
The attribute is protected |
- |
BooleanMatch |
- |
- |
Boolean |
yes |
- |
yes |
dSAOperation |
usage |
1.3.6.1.4.1.18060.1.1.0.3.15 |
Type of operation |
- |
UsageMatch |
- |
- |
Usage |
yes |
- |
yes |
dSAOperation |
Ordering is useless, so is Substr.