| Object Class | Contained Class |
|---|---|
| Tree Root | Country domain Organization |
| Country | domain Locality Organization |
| Locality | domain Locality Organization OrganizationalUnit |
| Organization | domain Locality OrganizationalUnit Leafobjects |
| OrganizationalUnit | domain Locality Organization OrganizationalUnit Leafobjects |
| domain | domain Country Locality Organization OrganizationalUnit Leafobjects |
| Object Class | Classes Contained By | Class Defined For |
|---|---|---|
| Alias | Special case | Inherits containment from referenced object. Since an alias can reference a container object, it can inherit the containment rules of the container object. |
| Partition | Special case | Inherits containment from the object that is the root object of the partition. In NDS 8, partition becomes an Auxiliary class and no longer requires any containment rules. |
| Unknown | Special case | Any. |
Effective classes can inherit containment classes from super classes only if the inheritance does not make containment ambiguous. If the inherited containment is ambiguous, the class must define containment.
Class-defined containment overrides containment defined for super classes.
NOTE: The object classes in the schema do not inherit anything from their containment classes, only from their Superior ObjectClasses.
version: 1 dn: cn=schema changetype: add objectClasses: ( 2.5.6.6 NAME ’person’ DESC ’Standard ObjectClass’ SUP ndsLoginProperties STRUCTURAL MUST (cn $ sn) MAY (description $ seeAlso $ telephoneNumber $ fullName $ givenName $ initials $ uid $ userPassword) X-NDS_NAMING (’cn’ ’uid’) X-NDS_CONTAINMENT (’organization’ ’organizationalUnit’ ’domain’) X-NDS_NAME ’Person’ X-NDS_NOT_CONTAINER ’1’ X-NDS_NONREMOVABLE ’1’ )The X-NDS_CONTAINMENT line shows the containers that this ObjectClass maybe contained within.