From 647d94d11cde64eb6dffd251922c7f79a3a9079a Mon Sep 17 00:00:00 2001 From: Samson-W Date: Fri, 19 Apr 2019 15:20:41 +0800 Subject: [PATCH] Modify apply method of 8.1.1.6: Need manual opration set Kerberos related. --- .../8.1.1.6_ensure_set_encrypt_for_audit_remote.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bin/hardening/8.1.1.6_ensure_set_encrypt_for_audit_remote.sh b/bin/hardening/8.1.1.6_ensure_set_encrypt_for_audit_remote.sh index faf5e36..daa68da 100755 --- a/bin/hardening/8.1.1.6_ensure_set_encrypt_for_audit_remote.sh +++ b/bin/hardening/8.1.1.6_ensure_set_encrypt_for_audit_remote.sh @@ -60,11 +60,9 @@ apply () { elif [ $FNRET = 2 ]; then warn "$FILE is not exist, please manual check." elif [ $FNRET = 3 ]; then - warn "$PATTERN value not exist in $FILE, add it" - add_end_of_file $FILE "${PATTERN} = $SETVALUE" + warn "$PATTERN value not exist in $FILE, need manual operation set it and ensure Kerberos is correct set." elif [ $FNRET = 4 ]; then - warn "$PATTERN value is incorrect in $FILE, reset it" - replace_in_file $FILE "^${PATTERN}[[:space:]].*" "${PATTERN} = $SETVALUE" + warn "$PATTERN value is incorrect in $FILE, need manual operation set it and ensure Kerberos is correct set." fi }