Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rule service_slapd_disabled #7694

Merged
merged 2 commits into from
Oct 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions controls/cis_rhel8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -706,14 +706,14 @@ controls:
rules:
- service_rpcbind_disabled

# NEEDS RULE
# https://github.com/ComplianceAsCode/content/issues/5231
- id: 2.2.14
title: Ensure LDAP server is not enabled (Automated)
levels:
- l1_server
- l1_workstation
automated: no
status: automated
rules:
- service_slapd_disabled

- id: 2.2.15
title: Ensure DHCP Server is not enabled (Automated)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
documentation_complete: true

prodtype: rhel8,rhel9

title: 'Disable LDAP Server (slapd)'

description: |-
The Lightweight Directory Access Protocol (LDAP) 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.

severity: medium

identifiers:
cce@rhel8: CCE-87262-2
cce@rhel9: CCE-87263-0

references:
cis@rhel8: 2.2.14

ocil: |-
{{{ ocil_service_disabled(service="slapd") }}}

platform: machine

template:
name: service_disabled
vars:
servicename: slapd
packagename: openldap-servers
2 changes: 0 additions & 2 deletions shared/references/cce-redhat-avail.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1332,8 +1332,6 @@ CCE-87258-0
CCE-87259-8
CCE-87260-6
CCE-87261-4
CCE-87262-2
CCE-87263-0
CCE-87264-8
CCE-87265-5
CCE-87266-3
Expand Down