Chapter 5, Entry Types and Object Class Attributes 53
Object Class Attributes in Template Files
<TD> </TD>
<TD> </TD>
</TR>
Note When deleting a single attribute-value pair from a row, replace the two deleted
cells with two cells containing the non-breaking space character. This maintains
the table width and ensures that the background colors are rendered correctly.
Extending Object Classes
The gateway can be extended to support additional object classes. This requires
changing information in an existing object class template so that the gateway
displays the associated entry type.
Note When extending object class definitions, the child should appear below the
parent object class in the HTML file. Otherwise, the gateway cannot correctly
interpret the HTML syntax.
Adding a Template for a Child of a Parent Class
The easiest way to create a new object class is to extend an existing object class
template, adding and deleting attributes as necessary. Example 5.4 shows the
steps required to add a template for a new object class, airiusPerson, which
adds two custom attributes—dateOfBirth and preferredOS—to the
inetOrgPerson object class.
Example 5.4 Adding template for subclass airiusPerson
1. Copy the display-orgperson.html file and rename it as display-
airiusperson.html.
2. Edit the third line in the template file to indicate the name of the new
directory entry type. Change:
<!-- inet. organizational person directory entry -->
to
<!-- airius person directory entry -->
3. Edit the DS_OBJECTCLASS directive to include the new object class.
Change: