Information
The Lightweight Directory Access Protocol (LDAP) was introduced as a replacement for NIS/YP. It is a service that provides a method for looking up information from a central database.
If the system will not need to act as an LDAP server, it is recommended that the software be removed to reduce the potential attack surface.
Solution
Run the following commands to stop slapd.service and remove the slapd package:
# systemctl stop slapd.service
# apt purge slapd
- OR -
- IF - the slapd package is required as a dependency:
Run the following commands to stop and mask slapd.service :
# systemctl stop slapd.service
# systemctl mask slapd.service
Impact:
There may be packages that are dependent on the slapd package. If the slapd package is removed, these dependent packages will be removed as well. Before removing the slapd package, review any dependent packages to determine if they are required on the system.
- IF - a dependent package is required: stop and mask the slapd.service leaving the slapd package installed.