|
||
|
|
Chapter 4 Server Instance File Reference
This chapter provides an overview of the files that are specific to an instance of Netscape Directory Server (Directory Server)the files stored under the serverRoot
/slapd-serverID directory. Having an overview of the files and configuration information stored in each instance of Directory Server should help you understand the file changes or absence of file changes which occur in the course of directory activity. It should also help you to detect errors and intrusion, by indicating what kind of changes to expect, and as a result, what changes are considered abnormal.This chapter contains the following sections:
- Overview of Directory Server Files
![]()
- Backup Files
![]()
- Configuration Files
![]()
- Database Files
![]()
- ldif Files
![]()
- Lock Files
![]()
- Log Files
![]()
Overview of Directory Server Files
Directory Server files and command-line scripts are stored under the serverRoot
/slapd-serverID directory. The only exception is themigrateInstance6script which is stored under the serverRoot/bin/slapd/admin/bindirectory.Code Example 4-1 shows the contents of the serverRoot
/slapd-serverID directory, where directories are marked with a/and scripts are marked with an*. See Chapter 8 "Command-Line Scripts" for further information on command-line scripts.Code Example 4-1 Contents of the serverRoot/slapd-serverID directory
To reflect the directory structure under the serverRoot
/slapd-serverID directory, this chapter is divided into the following sections:Each section describes the file type and contents.
Each Directory Server instance contains the following three directories for storing backup related files:
bak- contains a directory dated with the time and date of your database backup, for example2001_02_13_174524/, which in turn holds your database backup copy.![]()
confbak- is the default directory used by therestoreconfigscript and thesaveconfigscripts. See Chapter 8 "Command-Line Scripts" for further information on Command-line Scripts.![]()
conf_bk- contains a backup copy of thedse.ldifconfiguration file from the time of installation.![]()
Each Directory Server instance contains the following directory for storing configuration files:
config- contains the configuration files as explained in "Server Configuration - Overview" on page 27.![]()
Each Directory Server instance contains the
dbdirectory for storing all the database files. Code Example 4-2 shows a sample listing of thedbdirectory contents.Code Example 4-2 Contents of sample db directory
./ __db.002 __db.005 NetscapeRoot/../ __db.003 DBVERSION userRoot/__db.001 __db.004 log.0000000017
db.00xfiles are used internally by the database and should not be moved, deleted, or modified in any way.![]()
log.xxxxxxxxxxfiles are used to store the transaction logs per database.![]()
DBVERSION- used for storing the version of the database.![]()
NetscapeRoot- this directory stores theo=NetscapeRootdatabase created by default at Typical installation.![]()
userRoot -this directory stores the user-defined suffix (user-defined databases) created at Typical installation time, for exampledc=example,dc=com.![]()
Code Example 4-3 shows a sample listing of the
NetscapeRootdirectory contents.Code Example 4-3 Contents of a sample NetscapeRoot subdirectory
./ entrydn.db3 parentid.db3../ givenName.db3 sn.db3aci.db3 id2entry.db3 uid.db3cn.db3 nsUniqueId.db3 uniquemember.db3DBVERSION numsubordinates.db3dncomp.db3 objectclass.db3
The
NetscapeRootsubdirectories contain an index_name.db3file for every index currently defined in the database, where index_name is the name of the index. In addition to these index_name.db3files theNetscapeanduserRootsubdirectories contain the following files:
dncomp.db3- contains a list of partial DNs enabling you to find IDs.![]()
entrydn.db3- contains a list of full DNs enabling you to find IDs.![]()
id2entry.db3- contains the actual directory database entries. All other database files can be recreated from this one, if necessary.![]()
nsuniqueid.db3- contains a list of Netscape unique IDs enabling you to find IDs.![]()
objectclass.db3- contains a list of IDs which have a particular objectclass.![]()
parentid.db3- contains a list of IDs allowing you to find ID of parent.![]()
Each Directory Server instance contains the ld
ifdirectory for storingldifrelated files. Code Example 4-4 shows a sample listing of theldifdirectory contents.Code Example 4-4 Contents of a sample ldif directory
../ European.ldif Example.ldif Example-roles.ldif
The following list describes the content of each of the ldif files:
European.ldif- contains European character samples.![]()
Example.ldif- is a sample ldif file.![]()
Example-roles.ldif- is a sample ldif file similar toExample.ldifexcept that it uses roles and class of service instead of groups for setting access control and resource limits for Directory Administrators.![]()
Each Directory Server instance contains a
locksdirectory for storinglockrelated files. Code Example 4-5 shows a sample listing of thelocksdirectory contents.Code Example 4-5 Contents of a sample locks directory
./ ../ exports/ imports/ server/
The lock mechanisms stored under the
lockssubdirectoriesexports,imports, andserverprevent multiple, simultaneous operations conflicting with each other. The lock mechanisms allow for one server instance to run at a time, with possible multiple export jobs. They also permits oneldif2dbimport operation at a time (notldif2db.pl since you can run multipleldif2db.ploperations at any time) to the exclusion of all export andslapdserver operations.
Each Directory Server instance contains a logs directory for storing log related files. Code Example 4-6 shows a sample listing of the
logsdirectory contents.Code Example 4-6 Contents of a sample logs directory
The following list describes the content of the log related files:
- The content of the
access,auditanderrorlog files is dependent on the log configuration.![]()
- The
slapd.statsfile is a memory-mapped file which cannot be read by an editor. It contains data collected by the Directory Server SNMP data collection component. This data is read by the SNMP subagent in response to SNMP attribute queries and is communicated to the SNMP master agent responsible for handling Directory Server SNMP requests.![]()
- The
pidis theslapdprocess identifier.![]()
© 2001 Sun Microsystems, Inc. Portions copyright 1999, 2002 Netscape Communications Corporation. All rights reserved.
Last Updated August 16, 2002