2.2.7 Ensure LDAP server is not enabled

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.

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.

Solution

Run the following command to disable slapd :

# systemctl disable slapd

References:

For more detailed documentation on OpenLDAP, go to the project homepage at http://www.openldap.org.

Notes:

Additional methods of disabling a service exist. Consult your distribution documentation for appropriate methods.

See Also

https://workbench.cisecurity.org/files/2688

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-7(4)

Plugin: Unix

Control ID: 785e575445a49d807b5265c9fbc05179506b8526eb83d670a6eb211bbf58fe1f