CIS Ubuntu 14.04 LTS - 2.2.6 Ensure LDAP server is not enabled

Verify that slapd LDAP server is disabled when not required

cyberstrikeus Updated

File contents

2.2.6 Ensure LDAP server is not enabled (Scored)

Profile Applicability

  • Level 1 - Server
  • Level 1 - Workstation

Description

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.

Rationale

If the system will not need to act as an LDAP server, it is recommended that the software be disabled to reduce the potential attack surface.

Audit Procedure

Run the following to ensure no start links for slapd exist in /etc/rc*.d:

ls /etc/rc*.d/S*slapd

No results should be returned.

Expected Result

No output should be returned, indicating that slapd has no start links.

Remediation

Run the following command to disable slapd:

update-rc.d slapd disable

Default Value

slapd is not enabled by default.

References

  1. For more detailed documentation on OpenLDAP, go to the project homepage at http://www.openldap.org.
  • CIS Controls: 9.1 Limit Open Ports, Protocols, and Services

Profile

  • Level 1 - Server
  • Level 1 - Workstation

cyberstrikeus/cyberstrike/tree/main/.cyberstrike/skill/CIS_benchmarks/Operating_Systems/Ubuntu/cis-ubuntu-linux-14-04-lts-benchmark-v2/cis-ubuntu1404-v210-2-2-6 commit a4983d7a0a

Frequently asked questions

npx skillmds@latest add cyberstrikeus/cis-ubuntu-14-04-lts-2-2-6-ensure-ldap-server-is-not-enabled