Installation guide

Table Of Contents
107
Appendix B
Gateway Directives
This appendix describes directives used in gateway HTML object class and search result
templates. The appendix contains the following sections:
Introduction (page 107)
Context-Related Directives (page 109)
Entry-Related Directives (page 110)
Miscellaneous Directives (page 122)
Introduction
The display of LDAP directory information is controlled by HTML template files
containing directives. Directives are HTML comments that can be interpreted by the
gateway CGIs.
The most commonly used directive is
DS_ATTRIBUTE, used to display attributes present in
LDAP entries. Here are some other examples of directives:
<!-- DS_HELPBUTTON "topic=HELP-ME-NOW" -->
<!-- DS_ATTRIBUTE "attr=sn" "size=>20" -->
<!-- IF "BoundAsThisEntry" -->
<!-- ENDIF -->
NOTE With the exception of GCONTEXT and PCONTEXT, each directive must start
at the beginning of a line and be contained on a single line in the HTML
file. Most of the Directory Server Gateway directives begin with
DS_.