There are two ways of displaying the current schema:
From the command line, using the ldapsearch command
In the Admin Console
Use the ldapsearch command with the following arguments to read the current schema through the directory server:
/opt/SUNWconn/bin/ldapsearch -h hostname -b "cn=schema" -s base 'objectclass=*'
where hostname is the name of the directory server.
Table 8-1 shows an extract of the type of information returned.
Table 8-1 Extract from the Directory Schema
When you use the ldapsearch command to display the schema, the keywords are shown in capitals. They introduce the following:
NAME introduces the name of the object class.
DESC introduces a description of the object class.
SUP introduces the name of the superior object class.
MUST introduces the list of mandatory attributes for an object class. In dsserv.oc.conf mandatory attributes are identified by the keyword requires.
MAY introduces the list of optional attributes for an object class. In dsserv.oc.conf mandatory attributes are identified by the keyword allows.
In the Admin Console, go to the Schema section.
This section displays a list of object classes in hierarchical order, or in alphabetical order. Use the buttons below the pane to change the display mode.
Click the folder icon for an object class to display its mandatory (M) and optional (O) attributes. With the hierarchical display, clicking on the folder icon of an object class will display any subclasses of that object class.
To display a list of attributes, click the Attributes list button.
An attribute list window is displayed. It contains a five-column table that shows:
The name of the attribute
Alias names for this attribute (separated by commas)
The attribute syntax, identified by a keyword (see "Attribute Reference")
A unique OID for the attribute
Whether the attribute is a naming attribute (that is, an attribute that can be used in the distinguished name of an entry), and whether it is single-valued