his chapter describes basic directory server management. Specifically, this chapter describes:
accesslog ""For information on changing server parameters from
slapd.conf, see "Changing Parameter Values Using slapd.conf".
Log File Rotation
The directory server does not support automatic rotation of log files. You should therefore examine your log files at least once a week to ensure that they are not getting too large. If the files are getting large, you should back up and then delete the current log files, and then clear the contents of the primary files. Do the following:
The ns-slapd log files can be found at
<NSHOME>/slapd-<serverID>/logs/errorsand
<NSHOME>/slapd-<serverID>/logs/access
To monitor your directory server's current activities from the server manager, use the Server Status | Monitor Current Activity form. If the server is currently not running, this form reflects that fact and no further information is given. If the server is currently on, this form provides server monitor information in the following tables:
There is also a small table at the top of the form that includes:
objectClass=*and a search base of
cn=monitorand a scope of
baseFor example:
ldapsearch -h directory.airius.com -s baseFor information on searching the directory server, see "Using ldapsearch".
-b "cn=monitor" (objectclass=*)
When you monitor your server's activities in this way, you see the following information:
version:Identifies the directory server's current version number.
threads:Current number of active threads. Each thread represents a single operation currently active in the server. Additional threads may also be created by internal server housekeeping tasks, such as replication or writing to logs.
connection: fd: opentime: opsinitiated: opscompleted: binddn: [rw]Provides the following summary information for each open connection:
fd--The file descriptor used for this connection.
opentime--The time this connection was opened.
opsinitiated--The number of operations initiated by this connection.
opscompleted--The number of operations completed.
binddn--The distinguished name used by this connection to connect to the directory server.
rw--Optional field that is shown if the connection is blocked for read or write.
currentconnections:Identifies the number of connections currently in service by the directory server.
totalconnections:Identifies the number of connections handled by the directory server since it started.
dtablesize:Shows the number of file descriptors available to the directory server. Note that each connection requires one file descriptor, one descriptor is required for every open index, one descriptor is required for log file management, and one descriptor is required for ns-slapd itself. Essentially, this value lets you know about how many more concurrent connections can be serviced by the directory server. For more information on file descriptors, refer to your operating system documentation.
writewaiters:Identifies the number of threads waiting to write data to a client.
readwaiters:Identifies the number of threads waiting to read data from a client.
opsinitiated:Identifies the number of operations ns-slapd has initiated since it started.
opscompleted:Identifies the number of operations ns-slapd has completed since it started.
entriessent:Identifies the number of entries sent to clients since ns-slapd started.
bytessent:Identifies the number of bytes sent to clients since ns-slapd started.
currentime:Identifies the time when this snapshot of ns-slapd was taken. The time is displayed in Greenwich mean time (GMT) in UTC format.
starttime:Identifies the time when ns-slapd started. The time is displayed in Greenwich mean time (GMT) in UTC format.
nbackends:Identifies the number of back ends (databases) ns-slapd services. Currently this value is always one.
concurrency:Solaris 2.x only. Indicates the current level of thread concurrency.
To monitor you server from the server manager, do the following:
There is a small table at the top of the form that provides:
Database
Identifies the type of database that you are monitoring.
Monitor DN
Identifies the distinguished name that you can use to obtain these results using
the ldapsearch client.
The remainder of the form consists of the following tables:
slapd.conf parameter is set to on.
objectClass=*and a search base of
cn=monitor-back,<your suffix>and a scope of
baseFor example:
ldapsearch -h directory.airius.com -s baseFor information on searching the directory server, see "Using ldapsearch".
-b "cn=monitor-back,o=airius.com" (objectclass=*)
When you monitor your server's activities in this way, you see the following information:
databaseIdentifies the type of database that you are currently monitoring.
readonlyIndicates whether the database is in read-only mode.
0 indicates that the server is not in read-only mode, 1 indicates that it is in read-only mode.
entrycachehitsProvides the same information as is described in "Entry Cache Hits".
entrycachetriesProvides the same information as is described in "Entry Cache Tries".
entrycachehitratioProvides the same information as is described in "Entry Cache Hit Ratio".
currententrycachesizeProvides the same information as is described in "Current Number of Entries in Entry Cache".
maxentrycachesizeProvides the same information as is described in "Maximum Number of Entries in Entry Cache".
dbchehitsProvides the same information as is described in "Hits".
dbcachetriesProvides the same information as is described in "Tries".
dbcachehitratioProvides the same information as is described in "Hit Ratio".
dbcachepageinProvides the same information as is described in "Pages Read In".
dbcachepageoutProvides the same information as is described in "Pages Written Out".
dbcacheroevictProvides the same information as is described in "Read-Only Page Evicts".
dbcacherwevictProvides the same information as is described in "Read-Write Page Evicts".
Next is displayed the following information for each file that makes up your database:
dbfilename-<number>Indicates the name of the file. <number> provides a sequential integer identifier (starting at 0) for the file. All associated statistics for the file are given this same numerical identifier.
dbfilecachehit-<number>Provides the same information as is described in "Cache Hits".
dbfilecachemiss-<number>Provides the same information as is described in "Cache Misses".
dbfilepagein-<number>Provides the same information as is described in "Pages Read In".
dbfilepageout-<number>Provides the same information as is described in "Pages Written Out".
Managing the Root DN
The Root DN is the privileged database user; that is, access control information does not apply to this user.
The password for this user is defined on the Root Password parameter. You can select one of two different password encryption schemes to store this parameter value, or you can choose to store the value in clear text. If you choose to store the value in clear text, you can use the server manager to manage groups, access control lists, and replication without performing any special authentication. While convenient, this strategy creates some obvious security risks in that anyone gaining access to your server manager can discover your Root DN password and have full access to your directory.
If you choose to use an encrypted password, then you must supply that password whenever you manage groups, access control, or replication from the server manager.
You can set your root DN and password and the encryption scheme used for this password from the Server Preferences| Manager Preferences form. After you make any changes to this form, you must click OK, confirm your changes, and restart the server.
Tuning Your Server's Performance
There are several server parameters available to you that allow you to manage server performance. You can view them all together from the server manager by going to Server Preferences |Performance Tuning.
The performance parameters shown on this form are shown in two different groups:
When you are done creating your database, be sure to set this parameter back to some lower value before you run your server in a production environment (default is 100,000).
Note that the encrypted port number that you specify must not be the same port number as you are using for normal LDAP communications.
If encryption is enabled for this server, you will see certificate information at the bottom of this form, including the server's certificate subject DN.
Also, you create the encryption alias when you create your server's certificate database. For more information on creating certificate databases, see the "Enabling SSL Encryption" section in Managing Netscape Servers.
Note
Most of the time, you want your server to run with SSL enabled. You might, at
other times, want to disable it. If you temporarily disable SSL, make sure you
re-enable it before processing transactions that require confidentiality, authentication, or data integrity.
Setting Security Preferences
You can choose the type of cipher to use for SSL. To do so, choose Server Preferences | Encryption Preferences in the server manager. After you make your changes, you must click OK, confirm your changes, and restart the server.
A cipher is the algorithm used in encryption. Some ciphers are more secure or stronger than others. Generally speaking, the more bits a cipher uses during encryption, the harder it is to decrypt the data. (For a more complete discussion of algorithms and their strength, see the Managing Netscape Servers manual.)
When a client initiates an SSL connection with a server, it lets the server know what ciphers it prefers to use to encrypt information. In any two-way encryption process, both parties must use the same ciphers. Since there are a number of ciphers available, your server needs to be able to use the most popular ones.
To specify which ciphers your server can use, check them in the list. Unless you have a compelling reason to not use a specific cipher, you should check them all.
Warning
You might not want to check none, MD5. If no other ciphers are available on
the client side, the server will use this, and no encryption will occur.
Another reason you might not want to enable all ciphers is to prevent SSL connections with less than optimal encryption. That is, United States law prohibits the export of products with 128-bit encryption, so overseas clients might only be using 40-bit encryption, which is not as difficult to crack as 128-bit. Unchecking all 40-bit ciphers effectively restricts access to clients available only in the United States.
Domestic versions of the Directory Server provide the following SSL 3.0 ciphers:
To find out how to create a certificate database and obtain a certificate for use by your:
client-key (where client is the alias for the file).