• Contact Us
  • Home
  • Reference

General slapd Operations

Written by Maryanne Normann

Updated at July 27th, 2024

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

Table of Contents

Daemon/Service Operations Unix/Linux Using Traditional init Using systemd Using solserver Windows Using the Service Controller Using PowerShell Configuration Testing Basic Backup & Restore Basic Database Backup Basic Database Restore

Date: 11-04-2022

Most operations must be run with administrative privileges.

Daemon/Service Operations

Unix/Linux

All Symas OpenLDAP daemon/service operations share the same control commands:

  • status = Get daemon status
  • start = Start the OpenLDAP daemon
  • stop = Stop the OpenLDAP daemon
  • restart = Stop and start the OpenLDAP daemon

Using Traditional init

The OpenLDAP daemon can be controlled through the traditional init command:

service solserver status|start|stop|restart

Using systemd

Symas OpenLDAP can be configured to start via systemd

systemctl status|start|stop|restart

Using solserver

The solserver script controls the OpenLDAP daemon without being installed in the traditional /etc/rc.d (or similar) init script location.

/opt/symas/etc/solserver status|start|stop|restart

Windows

Using the Service Controller

When Symas OpenLDAP is installed on a Windows server, the service is registered with the service control manager and the start/stop/restart functions are available through the standard service control interface.

Using PowerShell

The Symas OpenLDAP service may also be controlled with Windows PowerShell.

Get-Service "slapd" # This shows the status of the service
Get-Service "slapd" | Start-Service -Verbose
Get-Service "slapd" | Stop-Service -Verbose
Get-Service "slapd" | Restart-Service -Verbose

Configuration Testing

See: [[Command Reference: slaptest]] for more details

/opt/symas/bin/slaptest [-F /opt/symas/etc/openldap/slapd.d]   

Basic Backup & Restore

See: LDAP Database Backup for more details

Basic Database Backup

/opt/symas/bin/slapcat [-F /opt/symas/etc/openldap/slapd.d] -b <baseDn> -l <output-filename>.ldif

Basic Database Restore

rm -f /var/symas/openldap-data/<directory>/*.mdb
/opt/symas/bin/slapadd [-F /opt/symas/etc/openldap/slapd.d] -b <baseDN> -l <input-filename>.ldif -q
Copyright © 2020-2024 Symas Corporation. All rights reserved.
slapd commands

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