Installation guide
Table Of Contents
- Gateway Customization Guide
- Contents
- Preface
- Introduction
- Setting Up the Gateway
- Gateway Installation Planning
- HTTP Server Configuration
- Creating a New Gateway Instance
- Gateway .conf File Configuration
- Configuring Gateway Clients
- Gateway Localization
- File Controlling Gateway Functionality
- Editing Entry Types
- Search Attributes, Filters, and Results
- Customizing Graphics and Color
- Parameters Defined in the .conf File
- Gateway Directives
- Introduction
- Context-Related Directives
- Entry-Related Directives
- DS_ENTRYBEGIN
- DS_ENTRYEND
- DS_ATTRIBUTE
- DS_OBJECTCLASS
- DS_VIEW_SWITCHER
- DS_SORTENTRIES
- DS_SEARCHDESC
- DS_POSTEDVALUE
- DS_EDITBUTTON
- DS_DELETEBUTTON
- DS_SAVEBUTTON
- DS_EDITASBUTTON
- DS_NEWPASSWORD
- DS_CONFIRM_NEWPASSWORD
- DS_OLDPASSWORD
- DS_HELPBUTTON
- DS_CLOSEBUTTON
- DS_BEGIN_ENTRYFORM
- DS_END_ENTRYFORM
- DS_EMIT_BASE_HREF
- DS_DNEDITBUTTON
- DS_BEGIN_DNSEARCHFORM
- DS_ATTRVAL_SET
- IF/ ELSE/ ELIF/ ENDIF
- Miscellaneous Directives
- CGI Usage
- Index
- List of Tables

Object Class Attributes in Template Files
64 Red Hat Directory Server Gateway Customization Guide • April 2005
6. Define a template parameter in dsgw.conf for the object class examplePerson:
template exampleperson person inetorgperson exampleperson
This will instruct the gateway to display the exampleperson entry type according to
the template defined for the
examplePerson object class
(
display-exampleperson.html).
7. Update the Directory Server schema to include the examplePerson object class.
8. To allow users to add entries for exampleperson using the gateway, add an
additional
newtype parameter to the dsgw.conf file. If this entry type is for display
purposes only, no
newtype parameter needs to be added.
See “Considerations for Adding New Entry Types,” on page 57, and “Extending Search
Preferences,” on page 74.
Creating a New Parent Object Class
These steps are required when the object class is not a child of an existing object class.
1. Add a template parameter to dsgw.conf for the new object class.
template newobjectclass
This will instruct the gateway to display the associated entry type according to the
template defined for the new object class.
2. To allow gateway users to add entries for the entry type, add an additional newtype
parameter to the
dsgw.conf file. If the associated entry type is for display purposes
only, no
newtype parameter needs to be added.
3. Update the Directory Server schema to include the new object class.
4. Add a search object entry to dsgwsearchprefs.conf, and update
dsgwfilter.conf so that the gateway will search for entries of this type.
5. Create a new search results form defining how the gateway will display search results
for the new object class.
NOTE Modify an existing search result form to create a new search results form.
See “Adding Information to Search Results,” on page 80, and “Removing
Information from Search Results,” on page 81.