|Work in progress|
This site is in the process of being reviewed and updated.
The ObjectClassRegistry is used to relate OID, name and schema for an ObjectClass. The following picture present the relations between those four elements :
Basically, a schema contains one or more ObjectClass (it can contains 0, but we won't see it in the ObjectClassRegistry in this case), an ObjectClass has a unique OID and may have more than one name.
A name is associated with only one OID and one ObjectClass.
An OID is associated with only one ObjectClass but with one to many names.
We wil have to use some structures to ease the work of the server. Again, we will favor speed against memory, because those structures are very often read and almost never modified.
The importants data we want to store are :
We don't really have an ObjectClass object, because as we have a 1-1 relation between OID and ObjectClass, we don't need it. As soon as we have found an OID into the data structure inside the ObjectClassRegistry, we know that this data represent an ObjectClass. .