• Contact Us
  • Home
  • Installation
  • Configuration

systemd Configuration

Learn how to configure and manage systemd services efficiently for optimal system performance.

Written by Maryanne Normann

Updated at November 15th, 2024

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

Table of Contents

Overriding System Limitations Overriding slapd Defaults

14 Nov 2024

With systemd, there are two seperate types of configuration changes.

  • Overriding system limitations such as the number of open files
  • Overriding defaults for the slapd startup process

Overriding System Limitations

Sometimes it is necessary to provide more resources to the slapd process. Most commonly this is the number of file descriptors available to the process. The following is an example of how this is done on both 2.5 and 2.6. 

All commands are run as root.

1. Create the directory symas-openldap-servers.service.d

RHEL:

mkdir -p /etc/systemd/system/symas-openldap-servers.service.d

Debian/Ubuntu: 

mkdir -p /etc/systemd/system/symas-openldap-server.service.d

2. Create the file override.conf.      

The following contents would allow the slapd process to have up to approximately 524,000 active connections :

[Service]  
LimitNOFILE=524288

3. The systemd daemon must be reloaded for this to take effect:   

systemctl daemon-reload

4. When ready, restart the slapd process   

systemctl restart slapd

Overriding slapd Defaults

By default, the slapd process will run as the root user and listen on ldap:/// and ldapi:///. To change these settings requires making a systemd override file:   

edit /etc/default/symas-openldap

Options that can be overridden:

  • SLAPD_URLS - URLS to listen on
  • SLAPD_OPTIONS - Additional options to pass to slapd, including user and group

For example, to listen on the ldap, ldaps, and ldapi ports and socket:

SLAPD_URLS="ldap:/// ldaps:/// ldapi:///"

To run as the user and group ldap:

SLAPD_OPTIONS="-u ldap -g ldap"

 

Copyright © 2020-2024 Symas Corporation. All rights reserved.
systemd setup systemd settings

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • Configure SSSD with LDAP on Ubuntu Client
  • Using OpenLDAP with ergo
  • LetsEncrypt Certificates on Ubuntu
  • 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