Using the ConfigFile Parameter to Configure the Directory Server
59
Option
Alternate Options
Description
Example
setup. Use
appropriate
caution
and
protection
with this
file.
--logfile
name
-l
This parameter
specifies a log file
to which to write the
output. If this is not
set, then the setup
information is written to
a temporary file.
-l /export/
example2007.log
For no log file, set the
file name to
/dev/
null
:
-l /dev/null
Table 5.2. setup-ds-admin Options
5.5.4. Using the ConfigFile Parameter to Configure the Directory
Server
The
ConfigFile
parameter in the
.inf
is an extremely useful tool to configure the directory from the
time it is set up. The
ConfigFile
parameter specified an LDIF file to import into the directory. Since
the
ConfigFile
parameter can be used multiple times, it is a good idea to have multiple LDIF files so
that the individual entries are easy to manage.
The
ConfigFile
parameter is set in the
[slapd]
section of the
.inf
.
For example, to configure a new Directory Server instance as a supplier in replication,
ConfigFile
can be used to create the replication manager, replica, and replication agreement entries:
[slapd]
...
ConfigFile = repluser.ldif
ConfigFile = changelog.ldif
ConfigFile = replica.ldif
ConfigFile = replagreement.ldif
...
The LDIF file contains the entry information. For example, the
replica.ldif
contains the
information to configure the new Directory Server instance as a supplier:
dn: cn=replica,cn="dc=example,dc=com",cn=mapping tree,cn=config
changetype: add
objectclass: top
objectclass: nsds5replica
objectclass: extensibleObject
cn: replica
nsds5replicaroot: dc=example,dc=com
nsds5replicaid: 7
nsds5replicatype: 3
nsds5flags: 1
nsds5ReplicaPurgeDelay: 604800