This chapter describes the planning decisions and tasks required to install and initially configure a gateway for access by end users. The chapter contains the following sections:
The following sections describe the steps for planning your installation of the gateway:
Table 2-1 shows the locations of gateway files.
Two gateway instances are installed during Directory Server installation: Netscape Directory Express (Directory Express) and the default gateway. The configuration files (pb.conf and dsgw.conf) for the two instances are stored in the serverRoot/clients/dsgw/context directory. Additional gateways can be created by customizing Directory Express or the default gateway.
Unique gateway instances may have unique HTML directories (for example, ..clients/dsgw/mythml) and template directories (for example, ..clients/dsgw/myconfig). However, gateways may also be cloned to use identical HTML and template directories while pointing to different Directory Servers or different suffixes on a Directory Server.
For more information on cloning the gateway, see Gateway Cloning.
The following sections describe procedure for protecting the configuration information of your gateway.
The gateway configuration files reference
files that contain sensitive information, including the binddnfile
parameter containing the bind DN and bind password used to permit
non-anonymous searching of the directory. The binddnfile
should not be stored under the gateway configuration directory (serverRoot/clients/dsgw)
or in any directory that is served up over HTTP.
Directory Server Gateway includes a script, updatedsgw , that can be used to update all gateway instances with changes to the Directory Server configuration, including changes to Directory Server port, host, suffix, and root DN (the ability to update the suffix is not available in the server administration console). The updatedsgw script is stored in the serverRoot/bin/slapd/admin/bin directory.
Changes made to the Directory Server configuration (dse.ldif) by the Netscape Console are posted to updatedsgw, and the relevant gateway files are updated. These files will be updated only when the host and port for the gateway match the host and port of the Directory Server.
|
|
|
|
The Directory Server's root DN (the Directory Server's superuser) must match the value of the gateway's dirmgr parameter. |
|
|
|
|
The Netscape Administration Server is the default HTTP server for the two gateway clients that are installed with the Directory Server. Both Directory Express and the default gateway are preconfigured to run under the Administration Server without additional setup.
There are many factors affecting gateway performance on an HTTP server, including the following:
In general, gateway performance on the Administration Server will begin to slow down when the number of users accessing the gateway throughout the enterprise reaches 6,000 people. (This is a very general recommendation that does not take into account factors listed above, especially the speed of the host machine.)
Network administrators expecting high gateway usage may wish to move the gateway to a high-performance HTTP server that is dedicated to running the gateway.
The following sections describe the steps for configuring an HTTP server:
The HTTP server uses Name Translation mapping to translate a virtual path provided by a gateway client to a physical path used by an HTTP server. This Name Translation mapping specifies the gateway's HTML directory. The gateway's CGIs use this information to output the correct URL (HTTP redirection). The NameTrans mapping is specified in the gateway's configuration file using the gwnametrans parameter.
For more information on configuring the gwnametrans parameter, see gwnametrans.
Directory Express and the default gateway are set to the root suffix specified during Directory Server installation. This suffix specifies the DN for the LDAP database and represents a root in the directory tree (for example, dc=example,dc=com). Multiple gateways can be set up on an HTTP server that provide access to directory entries that correspond to this root suffix.
When the Directory Server's suffix changes, it is necessary to run the updatedsgw script manually to propagate the change to all gateway instances.
|
|
|
|
When the root suffix, directory manager, or port change, the gateway settings in dsgw.conf must be updated to reflect the changes (if they haven't been updated by Netscape Console). |
|
|
|
|
Directory Express and the default gateway are installed with the Directory Server and configured to run under the Netscape Administration Server, which is the default HTTP server for the gateway clients. No additional configuration is necessary. However, customers in high-usage networks may wish to move their gateways (or set up new gateways) on a high-performance HTTP server.
Setting up a gateway with a web server typically requires:
http://enterprise.netscape.com/docs/enterprise/index.html
For configuring other HTTP servers, follow the documentation that came with the product.
To configure the gateway to work with Netscape Enterprise Server, follow the instructions below:
These instructions assume that the new gateway instance will run under the Netscape Administration Server or a similarly capable HTTP server.
The HTML and template directories for one
gateway can serve as the HTML and template directory for many others.
Maintaining the functionality of multiple gateways in a centralized /config and
/html
directories is useful when the only values that are likely to change
are parameter settings in the .conf file,
such as the host and port specified by the baseurl
parameter, the root DN specified by the
dirmgr parameter, and the root suffix specified by the location-suffix
parameter.
The following sections describe the steps for configuring the gateway .conf file:
The LDAP port is set during Directory Server installation. This value can be changed in the baseurl parameter. The following example shows the syntax used to specify a port number that is different than the default port number of 389. For example, the baseurl parameter in the LDAP port is changed to the following:
baseurl
"ldaps://dirserver.example.com:3000/o%3Dexample.com"
When Directory Server is installed, a default Directory Manager account (cn=Directory Manager) is setup with permissions to the root DN. The Directory Server installation requires a root DN. If no root DN was configured when the Directory Server was installed, then no default Directory Manager is configured for the gateway.
It is strongly recommended that you use a different directory manager account for the gateway, an account other than cn=Directory Manager. Once you setup the new directory manager account (for example, cn=gateway manager,cn=config), use ACLs to restrict access to applicable sub suffixes and the user entries under those sub suffixes. This enables the gateway directory manager to change those users' passwords but prevents the entry from having complete control of the Directory Server.
|
|
|
|
For security reasons, set the gateway Directory Manager to an entry other than cn=Directory Manager. |
|
|
|
|
Use this procedure to configure the gateway Directory Manager to reference the correct DN:
|
|
|
|
End users frequently forget their passwords, so give the gateway Directory Manager write access to the userPassword attribute for the entries it will manage. |
|
|
|
|
The dirmgr
parameter is described in dirmgr.
Creating
directory entries is described in the
Netscape Directory Server Administrator's Guide.
Figure 2-1 shows the authentication login screen for the default gateway. Administrators can use it to authenticate as the Directory Manager. The Authenticate as Directory Manager button is displayed only when a Directory Manager has been configured for the gateway.
The authlifetime parameter, which defines the number of seconds that a user may remain authenticated, is described in location.
The location-suffix parameter is defined in dsgw.conf and identifies the suffix under which the gateway creates new entries in the directory. The location-suffix parameter can point to any suffix in a directory.
Setting the location-suffix parameter is described in include. The Netscape Directory Server Administrator's Guide describes the Suffix parameter and provides syntax examples. Setting the root suffix is also described in the Netscape Directory Server Installation Guide.
When the Directory Server is installed, the gateway is configured to communicate with the Directory Server using a non-SSL host name and port number. This information is stored in the baseurl parameter.
Configuring the gateway to use SSL when communicating with the Directory Server requires modification of the securitypath and baseurl parameters in dsgw.conf.
Enabling SSL communications on the Directory
Server is described in the
Netscape Directory Server Administrator's Guide. Information about
managing key and certificate databases is provided in
Managing Servers with Netscape Console.
The securitypath parameter specifies the location of the certificate database. For example, you can specify the path to the certificate database as follows:
securitypath "/usr/netscape/servers/alias/slapd-testDir-cert8.db"
The following example shows the baseurl parameter configured to use ldaps (instead of ldap, the default) and standard SSL port number 636:
baseurl "ldaps://dirserver.example.com:636/o%3Dexample.com"
|
|
|
|
Before configuring SSL, verify that the gateway's certificate database contains a server certificate or Certificate Authority (CA) certificate needed to communicate with the Directory Server. |
|
|
|
|
For more information about the baseurl
parameter, see baseurl.
Mappings between vCARD properties and LDAP attribute type are described in vcard-property.
The following sections describe how to configure clients of the gateway:
When a user accesses information in the
directory from an HTTP client -- through the gateway or another
HTTP-based LDAP interface -- the client provides the Directory Server
with information indicating the optimal character set and collation
order to use in transmitting information to the browser.
To display directory content that uses a non-English alphabet, a font capable of displaying a non-English alphabet must be installed on the user's system.
The Directory Server can store any Unicode character, so users of Netscape Communicator or later versions of Netscape browsers should install a font that supports all of Unicode. Bitstream Cyberbit, which is bundled with Communicator, supports Unicode.
Users who are not using Communicator should
use a font that supports Latin-1 (or Western) character sets. Most of
the commonly used fonts (Courier, Times Roman, Helvetica) have a
Latin-1 variant.
Administrators can reconfigure Javascript preference settings in Communicator or later versions of Netscape browsers to allow users to interact with information stored in the user directory.
| Previous |
Contents |
Index |
DocHome | Next |