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
4db2ebb1
Commit
4db2ebb1
authored
Apr 30, 2016
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-9940 CREATE ROLE blocked by password validation plugin
parent
357f4d83
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletion
+9
-1
mysql-test/suite/plugins/r/simple_password_check.result
mysql-test/suite/plugins/r/simple_password_check.result
+2
-0
mysql-test/suite/plugins/t/simple_password_check.test
mysql-test/suite/plugins/t/simple_password_check.test
+6
-0
sql/sql_acl.cc
sql/sql_acl.cc
+1
-1
No files found.
mysql-test/suite/plugins/r/simple_password_check.result
View file @
4db2ebb1
...
...
@@ -147,6 +147,8 @@ grant select on *.* to foo2 identified with mysql_old_password using '2222222222
drop user foo2;
set global strict_password_validation=1;
drop user foo1;
create role r1;
drop role r1;
uninstall plugin simple_password_check;
create user foo1 identified by 'pwd';
drop user foo1;
mysql-test/suite/plugins/t/simple_password_check.test
View file @
4db2ebb1
...
...
@@ -103,6 +103,12 @@ drop user foo2;
set
global
strict_password_validation
=
1
;
drop
user
foo1
;
#
# MDEV-9940 CREATE ROLE blocked by password validation plugin
#
create
role
r1
;
drop
role
r1
;
uninstall
plugin
simple_password_check
;
create
user
foo1
identified
by
'pwd'
;
...
...
sql/sql_acl.cc
View file @
4db2ebb1
...
...
@@ -3458,7 +3458,7 @@ static int replace_user_table(THD *thd, TABLE *table, LEX_USER &combo,
}
if
(
!
old_row_exists
||
combo
.
pwtext
.
length
||
combo
.
pwhash
.
length
)
if
(
validate_password
(
&
combo
))
if
(
!
handle_as_role
&&
validate_password
(
&
combo
))
goto
end
;
/* Update table columns with new privileges */
...
...
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