General slapd Operations
Table of Contents
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|restartUsing systemd
Symas OpenLDAP can be configured to start via systemd
systemctl status|start|stop|restartUsing 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|restartWindows
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 -VerboseConfiguration 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>.ldifBasic 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