diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2021-01-07 13:09:40 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-07 13:09:40 +0300 |
commit | 0abf01b3583e595bca5370f8feb53da4ca8b467e (patch) | |
tree | 2d59aaa952e543a7d41a347db386fb8e4227ff0c /include | |
parent | c864daa742aaad32a6a5a1a90b550d19062f6584 (diff) | |
parent | 82e5a8beed53d1f3f38c366e8a8d9cc07ce30572 (diff) |
Merge pull request #1100 from teoberi/Lynis-with-MariaDB->-10.4
[DBS-1816] Force test to check only password authentication
Diffstat (limited to 'include')
-rw-r--r-- | include/tests_databases | 2 |
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" |