1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Use mysql.user.authentication_string for password

Don't distinguish between a "password hash" and "authentication string"
anymore. Now both are stored in mysql.user.authentication_string, both
are handled identically internally. A "password hash" is just how some
particular plugins interpret authentication string.

Set mysql.user.plugin even if there is no password. The server will use
mysql_native_password plugin in these cases, let's make it expicit.

Remove LEX_USER::pwhash.
This commit is contained in:
Sergei Golubchik
2018-10-14 13:52:52 +02:00
parent 0e388d43a7
commit 76151f3cbc
33 changed files with 368 additions and 386 deletions

View File

@ -128,7 +128,7 @@ max_questions 0
max_updates 0
max_connections 0
max_user_connections 0
plugin
plugin mysql_native_password
authentication_string
password_expired N
is_role N
@ -175,7 +175,7 @@ max_questions 0
max_updates 0
max_connections 0
max_user_connections 0
plugin
plugin mysql_native_password
authentication_string
password_expired N
is_role N
@ -222,7 +222,7 @@ max_questions 0
max_updates 0
max_connections 0
max_user_connections 0
plugin
plugin mysql_native_password
authentication_string
password_expired N
is_role N
@ -293,7 +293,7 @@ max_questions 0
max_updates 0
max_connections 0
max_user_connections 0
plugin
plugin mysql_native_password
authentication_string
password_expired N
is_role N
@ -340,7 +340,7 @@ max_questions 0
max_updates 0
max_connections 0
max_user_connections 0
plugin
plugin mysql_native_password
authentication_string
password_expired N
is_role N
@ -387,7 +387,7 @@ max_questions 0
max_updates 0
max_connections 0
max_user_connections 0
plugin
plugin mysql_native_password
authentication_string
password_expired N
is_role N
@ -444,7 +444,7 @@ max_questions 0
max_updates 0
max_connections 0
max_user_connections 0
plugin
plugin mysql_native_password
authentication_string
password_expired N
is_role N
@ -491,7 +491,7 @@ max_questions 0
max_updates 0
max_connections 0
max_user_connections 0
plugin
plugin mysql_native_password
authentication_string
password_expired N
is_role N
@ -538,7 +538,7 @@ max_questions 0
max_updates 0
max_connections 0
max_user_connections 0
plugin
plugin mysql_native_password
authentication_string
password_expired N
is_role N
@ -617,7 +617,7 @@ max_questions 0
max_updates 0
max_connections 0
max_user_connections 0
plugin
plugin mysql_native_password
authentication_string
password_expired N
is_role N
@ -664,7 +664,7 @@ max_questions 0
max_updates 0
max_connections 0
max_user_connections 0
plugin
plugin mysql_native_password
authentication_string
password_expired N
is_role N
@ -711,7 +711,7 @@ max_questions 0
max_updates 0
max_connections 0
max_user_connections 0
plugin
plugin mysql_native_password
authentication_string
password_expired N
is_role N
@ -782,7 +782,7 @@ max_questions 0
max_updates 0
max_connections 0
max_user_connections 0
plugin
plugin mysql_native_password
authentication_string
password_expired N
is_role N
@ -829,7 +829,7 @@ max_questions 0
max_updates 0
max_connections 0
max_user_connections 0
plugin
plugin mysql_native_password
authentication_string
password_expired N
is_role N
@ -876,7 +876,7 @@ max_questions 0
max_updates 0
max_connections 0
max_user_connections 0
plugin
plugin mysql_native_password
authentication_string
password_expired N
is_role N
@ -933,7 +933,7 @@ max_questions 0
max_updates 0
max_connections 0
max_user_connections 0
plugin
plugin mysql_native_password
authentication_string
password_expired N
is_role N
@ -980,7 +980,7 @@ max_questions 0
max_updates 0
max_connections 0
max_user_connections 0
plugin
plugin mysql_native_password
authentication_string
password_expired N
is_role N
@ -1027,7 +1027,7 @@ max_questions 0
max_updates 0
max_connections 0
max_user_connections 0
plugin
plugin mysql_native_password
authentication_string
password_expired N
is_role N
@ -1136,7 +1136,7 @@ max_questions 0
max_updates 0
max_connections 0
max_user_connections 0
plugin
plugin mysql_native_password
authentication_string
password_expired N
is_role N
@ -1183,7 +1183,7 @@ max_questions 0
max_updates 0
max_connections 0
max_user_connections 0
plugin
plugin mysql_native_password
authentication_string
password_expired N
is_role N
@ -1230,7 +1230,7 @@ max_questions 0
max_updates 0
max_connections 0
max_user_connections 0
plugin
plugin mysql_native_password
authentication_string
password_expired N
is_role N
@ -1334,7 +1334,7 @@ max_questions 0
max_updates 0
max_connections 0
max_user_connections 0
plugin
plugin mysql_native_password
authentication_string
password_expired N
is_role N
@ -1381,7 +1381,7 @@ max_questions 0
max_updates 0
max_connections 0
max_user_connections 0
plugin
plugin mysql_native_password
authentication_string
password_expired N
is_role N
@ -1428,7 +1428,7 @@ max_questions 0
max_updates 0
max_connections 0
max_user_connections 0
plugin
plugin mysql_native_password
authentication_string
password_expired N
is_role N
@ -1485,7 +1485,7 @@ max_questions 0
max_updates 0
max_connections 0
max_user_connections 0
plugin
plugin mysql_native_password
authentication_string
password_expired N
is_role N
@ -1532,7 +1532,7 @@ max_questions 0
max_updates 0
max_connections 0
max_user_connections 0
plugin
plugin mysql_native_password
authentication_string
password_expired N
is_role N
@ -1579,7 +1579,7 @@ max_questions 0
max_updates 0
max_connections 0
max_user_connections 0
plugin
plugin mysql_native_password
authentication_string
password_expired N
is_role N
@ -1643,7 +1643,7 @@ max_questions 0
max_updates 0
max_connections 0
max_user_connections 0
plugin
plugin mysql_native_password
authentication_string
password_expired N
is_role N
@ -1690,7 +1690,7 @@ max_questions 0
max_updates 0
max_connections 0
max_user_connections 0
plugin
plugin mysql_native_password
authentication_string
password_expired N
is_role N
@ -1737,7 +1737,7 @@ max_questions 0
max_updates 0
max_connections 0
max_user_connections 0
plugin
plugin mysql_native_password
authentication_string
password_expired N
is_role N
@ -1816,7 +1816,7 @@ max_questions 0
max_updates 0
max_connections 0
max_user_connections 0
plugin
plugin mysql_native_password
authentication_string
password_expired N
is_role N
@ -1863,7 +1863,7 @@ max_questions 0
max_updates 0
max_connections 0
max_user_connections 0
plugin
plugin mysql_native_password
authentication_string
password_expired N
is_role N
@ -1910,7 +1910,7 @@ max_questions 0
max_updates 0
max_connections 0
max_user_connections 0
plugin
plugin mysql_native_password
authentication_string
password_expired N
is_role N