diff --git a/include/tests_databases b/include/tests_databases index 5a6a3801..733679b5 100644 --- a/include/tests_databases +++ b/include/tests_databases @@ -207,21 +207,21 @@ ################################################################################# # # Test : DBS-1884 - # Description : Determine Redis configuration option: secureauth + # Description : Determine Redis configuration option: requirepass if [ ${REDIS_RUNNING} -eq 1 -a ${REDIS_CONFIGURATION_FOUND} -eq 1 ]; then PREQS_METS="YES"; else PREQS_MET="NO"; fi - Register --test-no DBS-1884 --weight L --network NO --preqs-met "${PREQS_MET}" --category security --description "Redis: secureauth option configured" + Register --test-no DBS-1884 --weight L --network NO --preqs-met "${PREQS_MET}" --category security --description "Redis: requirepass option configured" if [ ${SKIPTEST} -eq 0 ]; then if FileIsReadable ${REDIS_CONFIGURATION}; then - if SearchItem "^secureauth" "${REDIS_CONFIGURATION}" "--sensitive"; then - LogText "Result: found 'secureauth' configured" + if SearchItem "^requirepass" "${REDIS_CONFIGURATION}" "--sensitive"; then + LogText "Result: found 'requirepass' configured" AddHP 3 3 - Display --indent 4 --text "- Redis (secureauth configured)" --result "${STATUS_FOUND}" --color GREEN - Report "redis_secureauth=1" + Display --indent 4 --text "- Redis (requirepass configured)" --result "${STATUS_FOUND}" --color GREEN + Report "redis_requirepass=1" else AddHP 0 3 - Display --indent 4 --text "- Redis (secureauth configured)" --result "${STATUS_NOT_FOUND}" --color YELLOW - ReportSuggestion "${TEST_NO}" "Configure the 'secureauth' setting for Redis" "${REDIS_CONFIGURATION}" "solution:configure 'secureauth' setting" - Report "redis_secureauth=0" + Display --indent 4 --text "- Redis (requirepass configured)" --result "${STATUS_NOT_FOUND}" --color YELLOW + ReportSuggestion "${TEST_NO}" "Configure the 'requirepass' setting for Redis" "${REDIS_CONFIGURATION}" "solution:configure 'requirepass' setting" + Report "redis_requirepass=0" fi else LogText "Result: test skipped, as we can't read configuration file"