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
52d695fe
Commit
52d695fe
authored
Feb 01, 2016
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix authentication plugin's tests in case username contains non-alphanumeric character, e.g dash
parent
e6dee57f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
mysql-test/r/auth_named_pipe.result
mysql-test/r/auth_named_pipe.result
+2
-2
mysql-test/t/auth_named_pipe.test
mysql-test/t/auth_named_pipe.test
+2
-2
plugin/auth_gssapi/mysql-test/auth_gssapi/basic.result
plugin/auth_gssapi/mysql-test/auth_gssapi/basic.result
+2
-2
plugin/auth_gssapi/mysql-test/auth_gssapi/basic.test
plugin/auth_gssapi/mysql-test/auth_gssapi/basic.test
+2
-2
No files found.
mysql-test/r/auth_named_pipe.result
View file @
52d695fe
INSTALL SONAME 'auth_named_pipe';
CREATE USER
USERNAME
IDENTIFIED WITH named_pipe;
CREATE USER
'USERNAME'
IDENTIFIED WITH named_pipe;
SELECT USER(),CURRENT_USER();
USER() CURRENT_USER()
USERNAME@localhost USERNAME@%
DROP USER
USERNAME
;
DROP USER
'USERNAME'
;
CREATE USER nosuchuser IDENTIFIED WITH named_pipe;
ERROR 28000: Access denied for user 'nosuchuser'@'localhost'
DROP USER nosuchuser;
...
...
mysql-test/t/auth_named_pipe.test
View file @
52d695fe
...
...
@@ -3,7 +3,7 @@
INSTALL
SONAME
'auth_named_pipe'
;
--
replace_result
$USERNAME
USERNAME
eval
CREATE
USER
$USERNAME
IDENTIFIED
WITH
named_pipe
;
eval
CREATE
USER
'$USERNAME'
IDENTIFIED
WITH
named_pipe
;
# Connect using named pipe, correct username
connect
(
pipe_con
,
localhost
,
$USERNAME
,,,,,
PIPE
);
--
replace_result
$USERNAME
USERNAME
...
...
@@ -11,7 +11,7 @@ SELECT USER(),CURRENT_USER();
disconnect
pipe_con
;
connection
default
;
--
replace_result
$USERNAME
USERNAME
eval
DROP
USER
$USERNAME
;
eval
DROP
USER
'$USERNAME'
;
# test invalid user name
CREATE
USER
nosuchuser
IDENTIFIED
WITH
named_pipe
;
...
...
plugin/auth_gssapi/mysql-test/auth_gssapi/basic.result
View file @
52d695fe
INSTALL SONAME 'auth_gssapi';
CREATE USER
GSSAPI_SHORTNAME
IDENTIFIED WITH gssapi;
CREATE USER
'GSSAPI_SHORTNAME'
IDENTIFIED WITH gssapi;
SELECT USER(),CURRENT_USER();
USER() CURRENT_USER()
GSSAPI_SHORTNAME@localhost GSSAPI_SHORTNAME@%
DROP USER
GSSAPI_SHORTNAME
;
DROP USER
'GSSAPI_SHORTNAME'
;
CREATE USER nosuchuser IDENTIFIED WITH gssapi;
ERROR 28000: GSSAPI name mismatch, requested 'nosuchuser', actual name 'GSSAPI_SHORTNAME'
DROP USER nosuchuser;
...
...
plugin/auth_gssapi/mysql-test/auth_gssapi/basic.test
View file @
52d695fe
...
...
@@ -4,7 +4,7 @@ INSTALL SONAME 'auth_gssapi';
# CREATE USER without 'AS' clause
#
--
replace_result
$GSSAPI_SHORTNAME
GSSAPI_SHORTNAME
eval
CREATE
USER
$GSSAPI_SHORTNAME
IDENTIFIED
WITH
gssapi
;
eval
CREATE
USER
'$GSSAPI_SHORTNAME'
IDENTIFIED
WITH
gssapi
;
connect
(
con1
,
localhost
,
$GSSAPI_SHORTNAME
,,);
--
replace_result
$GSSAPI_SHORTNAME
GSSAPI_SHORTNAME
SELECT
USER
(),
CURRENT_USER
();
...
...
@@ -12,7 +12,7 @@ disconnect con1;
connection
default
;
--
replace_result
$GSSAPI_SHORTNAME
GSSAPI_SHORTNAME
eval
DROP
USER
$GSSAPI_SHORTNAME
;
eval
DROP
USER
'$GSSAPI_SHORTNAME'
;
CREATE
USER
nosuchuser
IDENTIFIED
WITH
gssapi
;
--
disable_query_log
...
...
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