From f69a0cdd49e73500c9dd96adc6dcceef289da8a2 Mon Sep 17 00:00:00 2001 From: Bob Gendler Date: Wed, 23 Jun 2021 17:18:12 -0400 Subject: [PATCH] fixed check command --- rules/os/os_directory_services_configured.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/os/os_directory_services_configured.yaml b/rules/os/os_directory_services_configured.yaml index c543f511..6ad2ee38 100644 --- a/rules/os/os_directory_services_configured.yaml +++ b/rules/os/os_directory_services_configured.yaml @@ -7,7 +7,7 @@ check: | To determine if the system is integrated to a directory service, ask the System Administrator (SA) or Information System Security Officer (ISSO) or run the following command: - /usr/bin/sudo dscl localhost -list . | /usr/bin/grep -vE '(Contact | Search | Local)' + /usr/bin/dscl localhost -list . | /usr/bin/grep -vE '(Contact|Search|Local|^$)' If nothing is returned, or if the system is not integrated into a directory service infrastructure, this is a finding. fix: |