• Contact Us
  • Home
  • Installation
  • Configuration

Override slapd Defaults

Discover how to customize and modify the default settings of the slapd tool in order to better meet your specific needs and preferences.

Written by Maryanne Normann

Updated at July 27th, 2024

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

Date: 11-04-2022

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. Use a text editor to create the symas-openldap override file /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

Add the following:

SLAPD_URLS="ldap:/// ldaps:///"
SLAPD_OPTIONS="-u root -g root"

The example above enables the default ports for ldap (389) and ldaps (636). It ensures that the slapd process will run under the system's ‘root’ user/group authority.

Save the recently created file, and set permissions on the file for read/write (owner), read (everyone else):

chmod 644 /etc/default/symas-openldap

Restart slapd:

sudo systemctl restart slapd

If you need to specify a port or change the user and group slapd runs as, make the following adjustment.

SLAPD_URLS="ldap://:1389/ ldaps://:1636/ ldapi:///" 
SLAPD_OPTIONS="-u ldap -g ldap"

In the example above, ldap is set to use port 1389 and ldaps is set to use port 1636. You may adjust the port as needed. The slapd process will now run with ‘ldap’ user/group authority.

Copyright © 2020-2024 Symas Corporation. All rights reserved.
ports options

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • Logging Configuration for RHEL / Centos
  • OpenLDAP and LMDB Sizing Guide
  • Environment Configuration
  • 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