slapcat

From RaySoft

slapcat is used to generate an LDAP Directory Interchange Format (LDIF) output based upon the contents of a slapd database. It opens the given database determined by the database number or suffix and writes the corresponding LDIF to standard output or the specified file. Databases configured as subordinate of this one are also output, unless -g is specified.[1]

Documentation

Syntax

slapcat [PARAMETER ...]

Parameters

-b SUFFIX
Use the specified SUFFIX to determine which database to generate output for. The -b cannot be used in conjunction with the -n option.
-f FILE
Specify an alternative slapd.conf FILE.
-H URI
Use dn, scope and filter from URI to only handle matching entries.
-l FILE
Write LDIF to specified FILE instead of standard output.
-n NUMBER
Generate output for the NUMBERth database listed in the configuration file. The -n cannot be used in conjunction with the -b option.

References

  1. man 8 'slapcat'