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
Adding Search Support for a New Object
74 Red Hat Directory Server Gateway Customization Guide • April 2005
"dsgw-people"
subtree
"full name" cn 111111 "" ""
"last name" sn 111111 "" ""
"phone number" "telephoneNumber" 111011 "" ""
"e-mail address" "mail" 111111 "" ""
"user id" "uid" 111111 "" ""
"title" title 111111 "" ""
"pager number" pagerTelephoneNumber 111011
"" ""
As a result of adding this syntax to dsgwsearchprefs.conf:
• A pager number selection will appear in the drop-down menu on the Advanced
Search form.
• The gateway will search the
pagerTelephoneNumber attribute of all entries within
the scope of the search.
• The gateway will look for values that contain, end with, start with, or are identical to
the search string entered by the user. It will not look for values that sound like the
search string entered by the user.
Adding Search Support for a New Object
There are two ways to add search support for a new object:
• Update entries in
dsgwsearchprefs.conf and dsgwfilter.conf with
definitions of search attributes for the new object. Use this method to add search
support for an object that is a child of another object.
• Create new entries in
dsgwsearchprefs.conf and dsgwfilter.conf for a new
object class. This method requires specifying preferences for searching object class
attributes and defining a filter to use in expressing search results.
Extending Search Preferences
The syntax in the following example shows the introduction of a new object,
examplePerson, and a new attribute, dateOfBirth, to the search preferences for the
person object class.