2.1.7 Ensure ldap server services are not in use
Audit#
Run the following command to verify slapd is not installed:
Nothing should be returned.- OR - - IF - the package is required for dependencies: Run the following command to verify slapd.service is not enabled:
Nothing should be returned.Run the following command to verify slapd.service is not active:
Nothing should be returned.Note: If the package is required for a dependency - Ensure the dependent package is approved by local site policy - Ensure stopping and masking the service and/or socket meets local site policy
Remediation#
Run one of the following commands to stop slapd.service and remove the slapd package:
- OR - - IF - the slapd package is required as a dependency: Run the following commands to stop and mask slapd.service: