Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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.

Objects relations

We have some relations between those elements, the OIDs, the element's names and the schema file's name. Here they are :Image Added
 

Schema's Relations

The schema is related with ObjectClasses and AttributeTypes

  1. A schema contains N ObjectClass and N AttributesType.
  2. A schema contains N AttributesType
  3. An ObjectClass is declared in one schema
  4. 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.

ObjectClass relations 

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)
  1. An ObjectClass is contained by only one schema
  2. An AttributesType is contained by only one schema
  3. An OID is associated with N ObjectClass name
  4. An OID is associated with N AttributesType name
  5. A ObjectClass name is associated with only one OID
  6. A AttributesType name is associated with only one OID
  7. An ObjectClass name has only one OID
  8. An AttributesType name has only one OID
  9. An OID is associated with only one ObjectClass
  10. ... (To be continued)

...

Actual grammar

The actual grammar used to parse schema is the following :

...