Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
af2dd582
Commit
af2dd582
authored
Jun 18, 2018
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
empty password is a valid password, don't crash
parent
5f051022
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletion
+8
-1
mysql-test/r/set_password.result
mysql-test/r/set_password.result
+4
-0
mysql-test/t/set_password.test
mysql-test/t/set_password.test
+2
-0
sql/sql_acl.cc
sql/sql_acl.cc
+2
-1
No files found.
mysql-test/r/set_password.result
View file @
af2dd582
...
...
@@ -174,4 +174,8 @@ connection default;
select user,host,password,plugin,authentication_string from mysql.user where user='foo';
user host password plugin authentication_string
foo localhost mysql_native_password *E8D46CE25265E545D225A8A6F1BAF642FEBEE5CB
set password for 'foo'@'localhost' = '';
select user,host,password,plugin,authentication_string from mysql.user where user='foo';
user host password plugin authentication_string
foo localhost mysql_native_password
drop user foo@localhost;
mysql-test/t/set_password.test
View file @
af2dd582
...
...
@@ -142,4 +142,6 @@ show grants;
--
disconnect
foo
--
connection
default
select
user
,
host
,
password
,
plugin
,
authentication_string
from
mysql
.
user
where
user
=
'foo'
;
set
password
for
'foo'
@
'localhost'
=
''
;
select
user
,
host
,
password
,
plugin
,
authentication_string
from
mysql
.
user
where
user
=
'foo'
;
drop
user
foo
@
localhost
;
sql/sql_acl.cc
View file @
af2dd582
...
...
@@ -3864,7 +3864,8 @@ void set_authentication_plugin_from_password(const User_table& user_table,
const
char
*
password
,
uint
password_length
)
{
if
(
password_length
==
SCRAMBLED_PASSWORD_CHAR_LENGTH
)
if
(
password_length
==
SCRAMBLED_PASSWORD_CHAR_LENGTH
||
password_length
==
0
)
{
user_table
.
plugin
()
->
store
(
native_password_plugin_name
.
str
,
native_password_plugin_name
.
length
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment