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
e9d86d80
Commit
e9d86d80
authored
Dec 11, 2020
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
issue ER_USER_IS_BLOCKED also for non-existent users
following the same masquerading logic
parent
dcc7f939
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
sql/sql_acl.cc
sql/sql_acl.cc
+9
-9
No files found.
sql/sql_acl.cc
View file @
e9d86d80
...
...
@@ -12828,15 +12828,6 @@ static bool find_mpvio_user(MPVIO_EXT *mpvio)
ACL_USER
*
user
=
find_user_or_anon
(
sctx
->
host
,
sctx
->
user
,
sctx
->
ip
);
if
(
user
&&
user
->
password_errors
>=
max_password_errors
&&
!
ignore_max_password_errors
(
user
))
{
mysql_mutex_unlock
(
&
acl_cache
->
lock
);
my_error
(
ER_USER_IS_BLOCKED
,
MYF
(
0
));
general_log_print
(
mpvio
->
auth_info
.
thd
,
COM_CONNECT
,
ER_THD
(
mpvio
->
auth_info
.
thd
,
ER_USER_IS_BLOCKED
));
DBUG_RETURN
(
1
);
}
if
(
user
)
mpvio
->
acl_user
=
user
->
copy
(
mpvio
->
auth_info
.
thd
->
mem_root
);
...
...
@@ -12873,6 +12864,15 @@ static bool find_mpvio_user(MPVIO_EXT *mpvio)
mpvio
->
make_it_fail
=
true
;
}
if
(
mpvio
->
acl_user
->
password_errors
>=
max_password_errors
&&
!
ignore_max_password_errors
(
mpvio
->
acl_user
))
{
my_error
(
ER_USER_IS_BLOCKED
,
MYF
(
0
));
general_log_print
(
mpvio
->
auth_info
.
thd
,
COM_CONNECT
,
ER_THD
(
mpvio
->
auth_info
.
thd
,
ER_USER_IS_BLOCKED
));
DBUG_RETURN
(
1
);
}
/* user account requires non-default plugin and the client is too old */
if
(
mpvio
->
acl_user
->
auth
->
plugin
.
str
!=
native_password_plugin_name
.
str
&&
mpvio
->
acl_user
->
auth
->
plugin
.
str
!=
old_password_plugin_name
.
str
&&
...
...
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