Using slaptest
slaptest
Online Use: ✅
Syntax:
slaptest {-f slapd.conf | -F slapd.d}
- The
slaptest
command is used for confirming the validity of a slapd configuration file or directory slaptest
may also be used to convert a static slapd configuration file (slapd.conf) to dynamic configuration (cn=config)
Option | Description |
---|---|
-f slapd.conf | -F slapd.d | The configuration file or directory to test |
-u | Perform a dry-run, which skips checking for the presence of an actual database |
-v | Verbose mode |
-Q | Quiet mode. Returns 0 for success, any other number for failure |
Examples:
Test the validity of a slapd.conf file, ignoring missing databases:
slaptest -f slapd.conf -u
Convert static configuration to dynamic configuration:
mkdir slapd.d slaptest -f slapd.conf -F slapd.d