Adding A Template For A Child Of A Parent Class - Netscape DIRECTORY SERVER 7.0 - GATEWAY CUSTOMIZATION Manual

Table of Contents

Advertisement

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,
The new template adds two custom attributes,
the
object class.
inetOrgPerson
Copy the
1.
display-orgperson.html
display-exampleperson.html
Edit the third line in the template file to indicate the name of the new directory
2.
entry type. Change:
<!-- inet. organizational person directory entry -->
to
<!-- example person directory entry -->
Edit the
3.
DS_OBJECTCLASS
<!-- DS_OBJECTCLASS "value=person,inetOrgPerson" -->
to
<!-- DS_OBJECTCLASS "value=person,inetOrgPerson,
exampleperson" -->
Add the value for
4.
<!-- IF "Adding" -->
<INPUT TYPE="hidden" NAME="add_objectClass" VALUE="top">
<INPUT TYPE="hidden" NAME="add_objectClass" VALUE="person">
<INPUT TYPE="hidden" NAME="add_objectClass"
VALUE="organizationalPerson">
<INPUT TYPE="hidden" NAME="add_objectClass"
VALUE="inetOrgPerson">
<INPUT TYPE="hidden" NAME="add_objectClass"
VALUE="exampleperson">
Be sure to add the line immediately before the
<!-- ENDIF // Adding -->
Add a new table row containing the
5.
attribute-value pairs.
<TR>
<TD VALIGN="TOP">Date of Birth:</TD>
<TD VALIGN="TOP"><B>
<!-- DS_ATTRIBUTE "attr=dateOfBirth" "cols=>8" -->
file, and rename it as
.
directive to include the new object class. Change:
to the input type.
exampleperson
dateOfBirth
Object Class Attributes in Template Files
examplePerson
and
dateOfBirth
preferredOS
directive:
ENDIF
and
preferredOS
Chapter 5
Editing Entry Types
.
, to
59

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the NETSCAPE DIRECTORY SERVER 7.0 - GATEWAY CUSTOMIZATION and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Netscape directory server 7.0

Table of Contents