B.2 Slap Tools
The collection of slap
tools included with OpenLDAP are provided to import and export data
directly from the DB files used for supporting an OpenLDAP server.
B.2.1 slapadd(8c)
This tool
reads LDIF entries from a file or standard input and writes the new
records to a slapd database (see Table B-2).
Option | Description |
|---|---|
-c | Continues processing input in the event of errors. |
-b suffix-n integer | Specify which database in the configuration file to use by the directory's suffix (-b) or by its location (-n) in the slapd.conf file (the first database listed is numbered 0). These options are mutually exclusive. |
-d integer | Specifies which debugging information to log. See the loglevel parameter in slapd.conf for a listing of log levels. |
-f filename | Specifies which configuration file to read. |
-l filename | Specifies the LDIF file to use for input. In the absence of this option, slapadd reads data from standard input. |
-v | Enables verbose mode. |
B.2.2 slapcat(8c)
This tool
reads records from a slapd database and writes
them to a file or standard output (see Table B-3).
Option | Description |
|---|---|
-c | Continues processing input in the event of errors. |
-b suffix-n integer | Specify which database in the configuration file to use by the directory's suffix (-b) or by its location (-n) in the slapd.conf file (the first database listed is numbered 0). These options are mutually exclusive. |
-d integer | Specifies which debugging information to log. See the loglevel parameter in slapd.conf for a listing of log levels. |
-f filename | Specifies which configuration file to read. |
-l filename | Specifies the name of the file to which the LDIF entries should be written. In the absence of this option, slapcat writes data to standard output. |
-v | Enables verbose mode. |
B.2.3 slapindex(8c)
This tool
regenerates the indexes in a slapd database (see
Table B-4).
Option | Description |
|---|---|
-c | Continues processing input in the event of errors. |
-b suffix-n integer | Specify which database in the configuration file to use by the directory's suffix (-b) or by its location (-n) in the slapd.conf file (the first database listed is numbered 0). These options are mutually exclusive. |
-d integer | Specifies which debugging information to log. See the loglevel parameter in slapd.conf for a listing of log levels. |
-f filename | Specifies which configuration file to read. |
-v | Enables verbose mode. |
B.2.4 slappasswd(8c)
This tool
generates a password hash suitable for use as an
Lq in slapd.conf (see Table B-5).
•
Table of Contents
•
Index
•
Reviews
•
Reader Reviews
•
Errata
LDAP System Administration
By
Gerald Carter
Publisher
: O''''Reilly
Pub Date
: March 2003
ISBN
: 1-56592-491-6
Pages
: 308
If you want to be a master of your domain, LDAP
System Administration will help you get up and
running quickly regardless of which LDAP version you use.
After reading this book, even with no previous LDAP
experience, you''''ll be able to integrate a directory server
into essential network services such as mail, DNS, HTTP, and
SMB/CIFS.