Installation guide

Table Of Contents
Object Class Attributes in Template Files
62 Red Hat Directory Server Gateway Customization Guide • April 2005
2. Insert a null pair to replace the deleted attribute.
<TR>
<TD VALIGN=
TOP NOWRAP>Pager:</TD>
<TD VALIGN=
TOP NOWRAP><B>
<!-- DS ATTRIBUTE
attr=pager syntax=tel cols=>16 -->
</B></TD>
<TD>&nbsp;</TD>
<TD>&nbsp;</TD>
</TR>
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.
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. The following example shows the steps
required to add a template for a new object class,
examplePerson. The new template
adds two custom attributes,
dateOfBirth and preferredOS, to the inetOrgPerson
object class.
1. Copy the display-orgperson.html file, and rename it as
display-exampleperson.html.
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.
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.