Operational overview

Creating a database

Creating the database is a two-step process:

  1. Create a file (for example, myldif) containing the entries you want your database to contain. Use the following example as a guide (or see ``LDAP database management tools'' for more details):
    dn: o=organization, c=US
    o: organization
    objectclass: organization
    

    dn: cn=name, o=organization, c=US cn: name sn: surname mail: email address objectclass: person

    You can include additional entries and attributes in this file if you want, or add them later via LDAP.

  2. Run this file through a tool to create the slapd database:

    /usr/bin/ldif2ldbm -f myslapd.conf -i myldif

    myslapd.conf is the configuration file you made and myldif is the database entries file. By default, the database files will be created in /usr/tmp. You may specify an alternate directory via the directory option in the slapd.conf(4ldap) file.


© 1999 The Santa Cruz Operation, Inc. All rights reserved.
UnixWare 7 Release 7.1.1 - 5 November 1999