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

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

  • 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

Files that control gateway functionality are described in Table 4-1.


Table 4-1    Gateway File Types and Locations

Files

What They Do

Location

Gateway .conf files  

Define basic configuration parameters for the gateway and specifies the HTML and template directory.  

/usr/iplanet/servers/dsgw/context

 

Gateway search configuration files  

Define how the gateway performs searches in the Directory.  

/usr/iplanet/servers/dsgw/config  

Gateway search result templates  

Define the filters used to display search results to the user.  

/usr/iplanet/servers/dsgw/config  

Object class templates  

Define object classes and attributes for entry types.  

/usr/iplanet/servers/dsgw/config  

Gateway script files  

Contain scripts used to communicate instructions to the directory server over HTTP.  

/usr/iplanet/servers/dsgw/config  

Banner files  

Define appearance of colors, background, graphics on gateway forms.  

/usr/iplanet/servers/dsgw/html  



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

  • The types of entries that can be created

  • The search base

  • Whether the gateway uses SSL communications


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

display-country.html  

country  

display-group.html  

groupOfNames  

display-groupun.html  

groupOfUniqueNames  

display-ntgroup.html  

ntGroup  

display-ntperson.html  

ntUser  

display-org.html  

organization  

display-orgperperson.html  

inetOrgPerson  

display-orgunit.html  

organizationalUnit  

display-person.html  

person  



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

authentication forms  

authPassword.html

authSearch.html  

standard search forms  

searchString.html  

advanced search forms  

csearchAttr.html

csearchBase.html

csearchMatch.html

csearchString.html

csearchType.html  

newentry forms  

newentryType.html

newentryName.html  



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

list-Anything.html  

Anything  

list-Auth.html  

Auth (internal)  

list-Groups.html  

Groups  

list-NT-Groups.html  

NT-Groups  

list-NT-People.html  

NT-People  

list-Org-Units.html  

Org-Units  

list-Organizations.html  

Organization  

list-People.html  

People  

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

maintitle.html

main form

authtitle.html  

authentication form  

csearchtitle.html  

advanced search forms  

newentrytitle.html  

new entry forms  

searchtitle.html  

standard search form  

display-*.html  

view or edit entry forms  

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