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 command remove the openldap2 and openldap2_5 packages:
# systemctl stop slapd.service
# zypper remove openldap2 openldap2_5
- 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 openldap2 package. If the openldap2 package is removed, these dependent packages will be removed as well. Before removing the openldap2 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 openldap2 package installed.