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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
0c7d773f
Commit
0c7d773f
authored
Nov 25, 2014
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test for two password validation plugins
when many plugins are active, all must approve the password
parent
78cb6e34
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
59 additions
and
0 deletions
+59
-0
mysql-test/suite/plugins/r/two_password_validations.result
mysql-test/suite/plugins/r/two_password_validations.result
+21
-0
mysql-test/suite/plugins/t/two_password_validations.test
mysql-test/suite/plugins/t/two_password_validations.test
+38
-0
No files found.
mysql-test/suite/plugins/r/two_password_validations.result
0 → 100644
View file @
0c7d773f
install soname "simple_password_check";
grant select on *.* to Fff_fff1 identified by '1fff_ffF';
drop user Fff_fff1;
install soname "cracklib_password_check";
grant select on *.* to foobar identified by 'q$%^&*R1234ty';
drop user foobar;
grant select on *.* to Fff_fff1 identified by '1fff_ffF';
ERROR HY000: Your password does not satisfy the current policy requirements
show warnings;
Level Code Message
Warning 1819 cracklib: it does not contain enough DIFFERENT characters
Error 1819 Your password does not satisfy the current policy requirements
grant select on *.* to foobar identified by 'q-%^&*rty';
ERROR HY000: Your password does not satisfy the current policy requirements
show warnings;
Level Code Message
Error 1819 Your password does not satisfy the current policy requirements
uninstall plugin simple_password_check;
grant select on *.* to foobar identified by 'q-%^&*rty';
drop user foobar;
uninstall plugin cracklib_password_check;
mysql-test/suite/plugins/t/two_password_validations.test
0 → 100644
View file @
0c7d773f
--
source
include
/
not_embedded
.
inc
if
(
!
$CRACKLIB_PASSWORD_CHECK_SO
)
{
skip
No
CRACKLIB_PASSWORD_CHECK
plugin
;
}
if
(
!
$SIMPLE_PASSWORD_CHECK_SO
)
{
skip
No
SIMPLE_PASSWORD_CHECK
plugin
;
}
let
$only_simple
=
grant
select
on
*.*
to
Fff_fff1
identified
by
'1fff_ffF'
;
let
$only_crack
=
grant
select
on
*.*
to
foobar
identified
by
'q-%^&*rty'
;
install
soname
"simple_password_check"
;
eval
$only_simple
;
drop
user
Fff_fff1
;
install
soname
"cracklib_password_check"
;
grant
select
on
*.*
to
foobar
identified
by
'q$%^&*R1234ty'
;
drop
user
foobar
;
--
error
ER_NOT_VALID_PASSWORD
eval
$only_simple
;
show
warnings
;
--
error
ER_NOT_VALID_PASSWORD
eval
$only_crack
;
show
warnings
;
uninstall
plugin
simple_password_check
;
eval
$only_crack
;
drop
user
foobar
;
uninstall
plugin
cracklib_password_check
;
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