slaptest
slaptest is used to check the conformance of the slapd.conf configuration file. It opens the slapd.conf configuration file, and parses it according to the general and the backend-specific rules, checking its sanity.[1]
Documentation
- man 8 'slaptest' [EN]
Syntax
slaptest [PARAMETER ...]
Parameters
- -f FILE
- Specify an alternative slapd.conf FILE.
- -F DIR
- Specify a config DIR. If both -f and -F are specified, the config file will be read and converted to config directory format and written to the specified directory. If neither option is specified, slaptest will attempt to read the default config directory before trying to use the default config file. If a valid config directory exists then the default config file is ignored. If dry-run mode is also specified, no conversion will occur.
- -u
- Enable dry-run mode (i.e. don't fail if databases cannot be opened, but config is fine).
- -v
- Enable verbose mode.
Examples
- Check the current configuration
slaptest -v -f '/etc/openldap/slapd.conf'
- Convert the old configuration into an new LDIF based one
slaptest -f '/etc/openldap/slapd.conf' -F '/etc/openldap/slapd.d'
References
- ↑ man 8 'slaptest'