2.1.7 Ensure ldap server services are not in use

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.

See Also

https://workbench.cisecurity.org/benchmarks/18960

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6, 800-53|CM-7, CSCv7|9.2

Plugin: Unix

Control ID: 216ab0ccab22e9318853dea6f95e64d39c57e6adeac929fe28a1e10ae737c9ac