Work in progress
This site is in the process of being reviewed and updated.
A schema defines two types of elements, accordingly to RFC 4512 :
Those two elements are used internally by ADS to check that an entry is valid, and to apply the correct rules to compare attributes, sort entries, check attributes, etc.
We have some relations between those elements, the OIDs, the element's names and the schema file's name. Here they are :
The schema is related with ObjectClasses and AttributeTypes.
- A schema contains N ObjectClass
- A schema contains N AttributesType
- An ObjectClass is declared in one schema
- An AttributeType is declared in one schema
The important things is to be able to know where an ObjectClass or an AttributeType are declared, from and schema administrator point of view. The server don't have any usage of this information, which is pretty much useless. As soon as the ObectClasses and AttributeTypes are loaded into the server, the schema is not used anymore.
The ObjectClass object is pretty central. It is used to create entries, and determine their characteristics, like the authorized and mandatory AttributeTypes. The ObjectClass attributes are :
- a unique OID
- a list of names, of which the first one is the primary name (names are case insensitives)
- a type ( ABSTRACT, AUXILIARY or STRUCTURAL)
- a flag to tell if the ObjectClass is obsolote or not
- the list of its superior, if any
The key is the OID.
The relations are :
- An ObjectClass is contained by only one schema
- A schema caan contains 0 to N ObjectClass
- An ObjectClass may have one or more superior
- An ObjectClass may be the superior of one or more ObjectClass
- An ObjectClass has only one OID
- An ObjectClass has 0 to N mandatory AttributeType
- An ObjectClass has 0 to N authorized AttributeType
- An AttributeType is included in one or more ObjectClass
- An ObjectClass may have more than on name
- A name uniquely identify an ObjectClass
We have two kinds of axccess to an ObjectClass : in the server, we access an ObjectClass either by its OID or by one of its name. From an administrator GUI, we may start with the schema.
AttributeTypes are used to characterize entry's attributes. They contain information about comparizon rules, ordering rules, and such.
- An AttributesType is contained by only one schema
- An OID is associated with N ObjectClass name
- An OID is associated with N AttributesType name
- A ObjectClass name is associated with only one OID
- A AttributesType name is associated with only one OID
- An ObjectClass name has only one OID
- An AttributesType name has only one OID
- An OID is associated with only one ObjectClass
- ... (To be continued)
The actual grammar used to parse schema is the following :
The next version should be a little bit more powerfull :
- it should use RFC 4512 grammar, which has extensions
- and it also should allow a less restrictive ordering of ObjectClass and AttributeType elements.
Here are the lexical elements for this grammar :
and the lexical elements :
The ObjectClass syntax is (as of RFC 4512) :
The AttributeType syntax is (as of RFC 4512) :
Th Syntax grammar is :
What does not appears in this grammar is an information regarding human readability (wether the attribute is binary or textual)..