Previous Contents Index DocHome Next |
iPlanet Directory Server Gateway Customization Guide |
Chapter 4 File Controlling Gateway Functionality
This chapter provides examples of customized gateways. Topics covered include:
Files Controlling Gateway Functionality
Gateway Search Configuration Files
Files Controlling Gateway Functionality
To the gateway user, the gateway is a set of HTML forms that can be accessed from a web browser to communicate directly with the LDAP directory server over HTTP.To the gateway administrator, the gateway is controlled by a set of files installed during directory server installation. These files can be edited to
Create new gateway instances
Files that control gateway functionality are described in Table 4-1.Edit the object class attributes that define the entries users can add to the Directory
Edit the search object class attributes that define how people search for and view entries in the LDAP directory
Change the appearance of gateway forms
Update the gateway with changes to directory server configuration
Gateway .conf Files
A gateway's .conf file describes an instance of the gateway. A gateway's .conf file controls the host, port, root suffix, and Directory Manager to use when communicating with the directory server. It also controls:
The localization settings for the gateway
The locations where new entries can be created within the directory
dsgw.conf
dsgw.conf is the configuration file for the default gateway. dsgw.conf is invoked at:http://<adminhost:adminport>/dsgw/bin/lang?context=dsgw
pb.conf
pb.conf is the configuration file for Directory Express, a gateway customized as a directory lookup tool. pb.conf is invoked at:http://<adminhost:adminport>/dsgw/bin/search?context=pb
Gateway configuration parameters are defined in Appendix A ".conf Parameters."
Gateway Search Configuration Files
Gateway search configuration files determine how the gateway queries information in the Directory and returns search results to the users. Gateway search configuration files are stored in the dsgw/config directory. All gateway instances for a directory server use these common search configuration files.
dsgwsearchprefs.conf
The dsgwsearchprefs.conf file specifies the object classes and object class attributes than can be searched.The dsgwsearchprefs.conf file is discussed in Chapter 6 "Search Attributes, Filters, and Results."
dsgwfilter.conf
The dsgwfilter.conf file specifies the search filters used to search for a particular object class. The gateway uses this file when performing a standard search operation.The dsgwfilter.conf file is discussed in Chapter 6 "Search Attributes, Filters, and Results."
Object Class Templates
The gateway contains a template file for each object class defined in the gateway. To modify how the gateway displays an entry type, edit the corresponding template file. To add gateway support for a new object class, create a new template file, or modify an existing one.Modifying template files is discussed in Chapter 5 "Editing Entry Types."
Default gateway object class templates stored in the dsgw/conf directory are listed in the following table.
Table 4-2    Default Template Files and Related Object Classes
Template File
Related Object Class
Gateway Script Files
Script files are used to dynamically generate HTML forms for the user, based on information supplied by the user and information retrieved from the directory server. Script files contain directives the gateway uses to construct the HTML for a page.Script files can be modified to change the appearance of text that appears in fields, buttons, and prompts on gateway forms.
Script files used to modify the information provided on gateway forms are identified in Table 4-3.
Table 4-3    Gateway Forms and Corresponding Script Files
Set of forms
Corresponding script files
Gateway Search Result Templates
Search result templates control how the results of a standard or advanced search are displayed when more than one entry is found. A separate search result file exists for each search object defined in dsgwsearchprefs.conf.The default search result files installed in the dsgw/config directory during directory server installation are shown in Table 4-4.
Table 4-4    Default Search Result Templates
Search Result Template
Related Object Class
Chapter 6 "Search Attributes, Filters, and Results" describes how search result templates can be edited to modify the display of search results.
Banner Files
Banner files identified in Table 4-5 are used to specify the banner and button images that appear in gateway forms.
Table 4-5    Banner Files Controlling Appearance of Gateway Forms
Banner Files
Controls Appearance of Banner and Buttons in
Chapter 7 "Customizing Graphics and Color" describes how to alter the color schemes and images appearing on gateway forms.
Previous Contents Index DocHome Next
Copyright © 2001 Sun Microsystems, Inc. Some preexisting portions Copyright © 2001 Netscape Communications Corp. All rights reserved.
Last Updated March 21, 2001