Symas OpenLDAP 2.6: Systemd configurationWith 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 limitationsSometimes 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 with Symas OpenLDAP 2.6. All commands run as root.
- RHEL: mkdir -p /etc/systemd/system/symas-openldap-servers.service.d
Debian/Ubuntu: mkdir -p /etc/systemd/system/symas-openldap-server.service.d
- Create the file override.conf
- The following contents would allow the slapd process to have up to approximately 524,000 active connections
- The systemd daemon must be reloaded for this to take effect:
- When ready, restart the slapd process
systemctl restart slapd
Overriding slapd defaultsBy 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
Options that can be overridden:
- SLAPD_URLS - URLS to listen on
- SLAPD_OPTIONS - Additional options to pass to slapd, including user and group
SLAPD_URLS="ldap:/// ldaps:/// ldapi:///"
To run as the user and group ldap
SLAPD_OPTIONS="-u ldap -g ldap"
Need help? Email: email@example.com