| name | CIS Ubuntu 14.04 LTS - 2.2.6 Ensure LDAP server is not enabled |
| description | Verify that slapd LDAP server is disabled when not required |
| category | cis-os-hardening |
| version | 2.1.0 |
| author | cyberstrike-official |
| tags | ["cis","ubuntu","ubuntu-14.04","level-1","scored","services"] |
| cis_id | 2.2.6 |
| cis_benchmark | CIS Ubuntu Linux 14.04 LTS Benchmark v2.1.0 |
| tech_stack | ["ubuntu","linux"] |
| cwe_ids | [] |
| chains_with | [] |
| prerequisites | [] |
| severity_boost | medium |
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
- 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