Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorteoberi <netadmin@aicta.ro>2021-01-03 12:48:34 +0300
committerGitHub <noreply@github.com>2021-01-03 12:48:34 +0300
commit82e5a8beed53d1f3f38c366e8a8d9cc07ce30572 (patch)
treec4e5312aaa46d003353cc3144507ba5463a1d33e /include/tests_databases
parent075d92e275b1984328b95ea8e5b4b1958cf5befd (diff)
Update tests_databases
Fix for Test: DBS-1816 - Check empty MySQL root password
Diffstat (limited to 'include/tests_databases')
-rw-r--r--include/tests_databases2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tests_databases b/include/tests_databases
index 9c8e1de0..d1f2c564 100644
--- a/include/tests_databases
+++ b/include/tests_databases
@@ -86,7 +86,7 @@
# "-u root --password=" avoids ~/.my.cnf authentication settings
# "plugin = 'mysql_native_password' AND authentication_string = ''" avoids false positives when secure plugins are used
- FIND=$(${MYSQLCLIENTBINARY} --no-defaults -u root --password= --silent --batch --execute="SELECT count(*) FROM mysql.user WHERE user = 'root' AND plugin = 'mysql_native_password' AND authentication_string = ''" mysql > /dev/null 2>&1; echo $?)
+ FIND=$(${MYSQLCLIENTBINARY} --default-auth=mysql_native_password --no-defaults -u root --password= --silent --batch --execute="SELECT count(*) FROM mysql.user WHERE user = 'root' AND plugin = 'mysql_native_password' AND authentication_string = ''" mysql > /dev/null 2>&1; echo $?)
if [ "${FIND}" = "0" ]; then
LogText "Result: Login succeeded, no MySQL root password set!"
ReportWarning "${TEST_NO}" "No MySQL root password set"