• Contact Us
  • Home
  • Reference

Using slaptest

Learn how to efficiently test your LDAP directories with slaptest for improved directory performance and reliability.

Written by Maryanne Normann

Updated at September 11th, 2025

  • Quick Start
  • Installation
    Best Practices Configuration Troubleshooting Design Performance Platform
  • Maintenance
    Releases Upgrade
  • Reference
+ More

slaptest functionality is useful to check the slapd configuration to see if slapd.conf or the slapd-config backend conform to the general or backend-specific rules. 

In the case of the static configuration (slapd.conf) it is recommended to run it after any change to the configuration before attempting to restart slapd.

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

If both options are specified the slapd.conf is converted to the config directory
-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

slaptest Man Page

 

Copyright © 2020-2024 Symas Corporation. All rights reserved.
utility slaptest cli

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • Chaining Overlay with Keep Alive Function
  • cn=monitor Reference
  • Common ldap Command Parameters
  • Common slapd Command Parameters
  • Convert Single-Master to Multi-Master Replication
  • Symas Blog RSS Feed
  • Symas on Facebook
  • Symas on Twitter
  • Symas Blog
  • Symas on LinkedIn
  • Symas YouTube Channel

Copyright © 2023, Symas Corporation. All rights reserved. Privacy Statement (updated July 31, 2023)

Phone:

Main Office: +1.650.963.7601
Fax: +1.650.390.6284

Email:

Sales: sales@symas.com
Support: support@symas.com

Office Hours:

8:00 AM - 5:00 PM ET

Office Location:

Symas Corporation
PO Box 391
Grand Junction, CO 81507 USA

Expand