HP-UX Directory Server 8.1 administrator guide

The Create database in field is automatically filled with the default database directory
(/var/opt/dirsrv/slapd-instance_name/db) and the name of the new database. It
is also possible to enter or browse for a different directory location.
2.3.1.2 Creating a new database for a single suffix from the command line
Use the ldapmodify command line utility to add a new database to the directory configuration
file. This utility is located at /opt/dirsrv/bin directory. The database configuration information
is stored in the cn=ldbm database,cn=plugins,cn=config entry.
For example, add a new database to the server example1:
1. Run ldapmodify:
ldapmodify -a -D "cn=directory manager" -w secret -p 389 -h server.example.com
The ldapmodify utility binds to the server and prepares it to add an entry to the
configuration file.
2. Create the entry for the new database.
dn: cn=UserData,cn=ldbm database,cn=plugins,cn=config
objectClass: top
objectClass: nsBackendInstance
cn: UserData
nsslapd-suffix: ou=people,dc=example,dc=com
nsslapd-directory: /var/opt/dirsrv/slapd-host1/db/UserData
The entry added corresponds to a database named UserData that contains the data for the
root or sub suffix ou=people,dc=example,dc=com.
3. Create a root or sub suffix, as described in “Creating root and sub suffixes from the command
line”. The database name, given in the DN attribute, must correspond with the value in the
nsslapd-backend attribute of the suffix entry.
2.3.1.3 Adding multiple databases for a single suffix
A single suffix can be distributed across multiple databases. However, to distribute the suffix, a
custom distribution function has to be created to extend the directory. For more information on
creating a custom distribution function, contact HP Professional Services.
42 Configuring directory databases