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
06a263e2
Commit
06a263e2
authored
Oct 25, 2010
by
Horst.Hunger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Due to failing on Freebsd.
parent
089ab763
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
15 deletions
+24
-15
mysql-test/r/plugin_auth_qa_2.result
mysql-test/r/plugin_auth_qa_2.result
+11
-7
mysql-test/t/plugin_auth_qa_1.test
mysql-test/t/plugin_auth_qa_1.test
+8
-8
mysql-test/t/plugin_auth_qa_2.test
mysql-test/t/plugin_auth_qa_2.test
+5
-0
No files found.
mysql-test/r/plugin_auth_qa_2.result
View file @
06a263e2
...
...
@@ -84,8 +84,8 @@ GRANT PROXY ON qa_test_5_dest TO ''@'localhost';
SELECT user,plugin,authentication_string,password FROM mysql.user WHERE user != 'root';
user plugin authentication_string password
*DFCACE76914AD7BD801FC1A1ECF6562272621A22
qa_test_5_user qa_auth_interface qa_test_5_dest
qa_test_5_dest *DFCACE76914AD7BD801FC1A1ECF6562272621A22
qa_test_5_user qa_auth_interface qa_test_5_dest
exec MYSQL PLUGIN_AUTH_OPT -h localhost -P MASTER_MYPORT --user=qa_test_5_user --password=qa_test_5_dest test_user_db -e "SELECT current_user(),user(),@@local.proxy_user,@@local.external_user;" 2>&1
ERROR 1045 (28000): Access denied for user 'qa_test_5_user'@'localhost' (using password: YES)
DROP USER qa_test_5_user;
...
...
@@ -98,32 +98,35 @@ GRANT ALL PRIVILEGES ON test_user_db.* TO qa_test_6_dest identified by 'dest_pas
GRANT PROXY ON qa_test_6_dest TO qa_test_6_user;
SELECT user,plugin,authentication_string,password FROM mysql.user;
user plugin authentication_string password
qa_test_6_dest *DFCACE76914AD7BD801FC1A1ECF6562272621A22
qa_test_6_user qa_auth_interface qa_test_6_dest
root
root
root
root
qa_test_6_user qa_auth_interface qa_test_6_dest
qa_test_6_dest *DFCACE76914AD7BD801FC1A1ECF6562272621A22
exec MYSQL PLUGIN_AUTH_OPT -h localhost -P MASTER_MYPORT --user=qa_test_6_user --password=qa_test_6_dest test_user_db -e "SELECT current_user(),user(),@@local.proxy_user,@@local.external_user;" 2>&1
ERROR 1045 (28000): Access denied for user 'qa_test_6_user'@'localhost' (using password: YES)
GRANT PROXY ON qa_test_6_dest TO root IDENTIFIED WITH qa_auth_interface AS 'qa_test_6_dest';
SELECT user,plugin,authentication_string,password FROM mysql.user;
user plugin authentication_string password
qa_test_6_dest *DFCACE76914AD7BD801FC1A1ECF6562272621A22
qa_test_6_user qa_auth_interface qa_test_6_dest
root
root
root
root
qa_test_6_user qa_auth_interface qa_test_6_dest
qa_test_6_dest *DFCACE76914AD7BD801FC1A1ECF6562272621A22
root qa_auth_interface qa_test_6_dest
exec MYSQL PLUGIN_AUTH_OPT -h localhost -P MASTER_MYPORT --user=root --password=qa_test_6_dest test_user_db -e "SELECT current_user(),user(),@@local.proxy_user,@@local.external_user;" 2>&1
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
REVOKE PROXY ON qa_test_6_dest FROM root;
SELECT user,plugin,authentication_string FROM mysql.user;
user plugin authentication_string
qa_test_6_dest
qa_test_6_user qa_auth_interface qa_test_6_dest
root
root
root
root
qa_test_6_user qa_auth_interface qa_test_6_dest
qa_test_6_dest
root qa_auth_interface qa_test_6_dest
exec MYSQL PLUGIN_AUTH_OPT -h localhost -P MASTER_MYPORT --user=root --password=qa_test_6_dest test_user_db -e "SELECT current_user(),user(),@@local.proxy_user,@@local.external_user;" 2>&1
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
...
...
@@ -135,6 +138,7 @@ user plugin authentication_string password
root
root
root
root
=== Test of the --default_auth option for clients ====
CREATE USER qa_test_11_user IDENTIFIED WITH qa_auth_interface AS 'qa_test_11_dest';
CREATE USER qa_test_11_dest IDENTIFIED BY 'dest_passwd';
...
...
mysql-test/t/plugin_auth_qa_1.test
View file @
06a263e2
...
...
@@ -18,7 +18,7 @@ GRANT PROXY ON plug_dest TO plug_user;
--
exec
$MYSQL
-
S
$MASTER_MYSOCK
-
u
plug_user
$PLUGIN_AUTH_OPT
--
password
=
plug_dest
-
e
"SELECT current_user();SELECT user();USE test_user_db;CREATE TABLE t1(a int);SHOW TABLES;DROP TABLE t1;"
2
>&
1
REVOKE
PROXY
ON
plug_dest
FROM
plug_user
;
--
error
1
--
exec
$MYSQL
-
S
var
/
tmp
/
mysqld
.
1.
sock
-
u
plug_user
$PLUGIN_AUTH_OPT
--
password
=
plug_dest
-
e
"SELECT current_user();SELECT user();USE test_user_db;CREATE TABLE t1(a int);SHOW TABLES;DROP TABLE t1;"
2
>&
1
--
exec
$MYSQL
-
S
$MASTER_MYSOCK
-
u
plug_user
$PLUGIN_AUTH_OPT
--
password
=
plug_dest
-
e
"SELECT current_user();SELECT user();USE test_user_db;CREATE TABLE t1(a int);SHOW TABLES;DROP TABLE t1;"
2
>&
1
DROP
USER
plug_user
,
plug_dest
;
#
# GRANT...WITH
...
...
@@ -40,7 +40,7 @@ REVOKE ALL PRIVILEGES ON test_user_db.* FROM 'plug_user'
REVOKE
PROXY
ON
plug_dest
FROM
plug_user
;
--
echo
3
)
--
error
1
--
exec
$MYSQL
-
S
var
/
tmp
/
mysqld
.
1.
sock
-
u
plug_user
$PLUGIN_AUTH_OPT
--
password
=
plug_dest
-
e
"SELECT current_user();SELECT user();USE test_user_db;CREATE TABLE t1(a int);SHOW TABLES;DROP TABLE t1;"
2
>&
1
--
exec
$MYSQL
-
S
$MASTER_MYSOCK
-
u
plug_user
$PLUGIN_AUTH_OPT
--
password
=
plug_dest
-
e
"SELECT current_user();SELECT user();USE test_user_db;CREATE TABLE t1(a int);SHOW TABLES;DROP TABLE t1;"
2
>&
1
DROP
USER
plug_user
,
plug_dest
;
#
# GRANT...WITH/CREATE...BY
...
...
@@ -49,7 +49,7 @@ GRANT ALL PRIVILEGES ON test_user_db.* TO plug_user
CREATE
USER
plug_dest
IDENTIFIED
BY
'plug_dest_passwd'
;
--
echo
1
)
--
error
1
--
exec
$MYSQL
-
S
var
/
tmp
/
mysqld
.
1.
sock
-
u
plug_user
$PLUGIN_AUTH_OPT
--
password
=
plug_dest
-
e
"SELECT current_user();SELECT user();USE test_user_db;CREATE TABLE t1(a int);SHOW TABLES;DROP TABLE t1;"
2
>&
1
--
exec
$MYSQL
-
S
$MASTER_MYSOCK
-
u
plug_user
$PLUGIN_AUTH_OPT
--
password
=
plug_dest
-
e
"SELECT current_user();SELECT user();USE test_user_db;CREATE TABLE t1(a int);SHOW TABLES;DROP TABLE t1;"
2
>&
1
GRANT
PROXY
ON
plug_dest
TO
plug_user
;
--
echo
2
)
--
replace_result
$MASTER_MYSOCK
MASTER_MYSOCK
$PLUGIN_AUTH_OPT
PLUGIN_AUTH_OPT
...
...
@@ -71,10 +71,10 @@ GRANT PROXY ON plug_dest TO plug_user;
--
exec
$MYSQL
-
S
$MASTER_MYSOCK
-
u
plug_user
$PLUGIN_AUTH_OPT
--
password
=
plug_dest
-
e
"SELECT current_user();SELECT user();"
2
>&
1
RENAME
USER
plug_dest
TO
new_dest
;
--
error
1
--
exec
$MYSQL
-
S
var
/
tmp
/
mysqld
.
1.
sock
-
u
plug_user
$PLUGIN_AUTH_OPT
--
password
=
plug_dest
-
e
"SELECT current_user();SELECT user();"
2
>&
1
--
exec
$MYSQL
-
S
$MASTER_MYSOCK
-
u
plug_user
$PLUGIN_AUTH_OPT
--
password
=
plug_dest
-
e
"SELECT current_user();SELECT user();"
2
>&
1
GRANT
PROXY
ON
new_dest
TO
plug_user
;
--
error
1
--
exec
$MYSQL
-
S
var
/
tmp
/
mysqld
.
1.
sock
-
u
plug_user
$PLUGIN_AUTH_OPT
--
password
=
new_dest
-
e
"SELECT current_user();SELECT user();"
2
>&
1
--
exec
$MYSQL
-
S
$MASTER_MYSOCK
-
u
plug_user
$PLUGIN_AUTH_OPT
--
password
=
new_dest
-
e
"SELECT current_user();SELECT user();"
2
>&
1
--
sorted_result
SELECT
user
,
plugin
,
authentication_string
FROM
mysql
.
user
WHERE
user
!=
'root'
;
DROP
USER
plug_user
,
new_dest
;
...
...
@@ -84,16 +84,16 @@ CREATE USER plug_user
IDENTIFIED
WITH
test_plugin_server
AS
'plug_dest'
;
CREATE
USER
plug_dest
IDENTIFIED
BY
'plug_dest_passwd'
;
--
error
1
--
exec
$MYSQL
-
S
var
/
tmp
/
mysqld
.
1.
sock
-
u
plug_user
$PLUGIN_AUTH_OPT
--
password
=
plug_dest
-
e
"SELECT current_user();SELECT user();"
2
>&
1
--
exec
$MYSQL
-
S
$MASTER_MYSOCK
-
u
plug_user
$PLUGIN_AUTH_OPT
--
password
=
plug_dest
-
e
"SELECT current_user();SELECT user();"
2
>&
1
GRANT
PROXY
ON
plug_dest
TO
plug_user
;
--
replace_result
$MASTER_MYSOCK
MASTER_MYSOCK
$PLUGIN_AUTH_OPT
PLUGIN_AUTH_OPT
--
exec
$MYSQL
-
S
$MASTER_MYSOCK
-
u
plug_user
$PLUGIN_AUTH_OPT
--
password
=
plug_dest
-
e
"SELECT current_user();SELECT user();"
2
>&
1
RENAME
USER
plug_dest
TO
new_dest
;
--
error
1
--
exec
$MYSQL
-
S
var
/
tmp
/
mysqld
.
1.
sock
-
u
plug_user
$PLUGIN_AUTH_OPT
--
password
=
plug_dest
-
e
"SELECT current_user();SELECT user();"
2
>&
1
--
exec
$MYSQL
-
S
$MASTER_MYSOCK
-
u
plug_user
$PLUGIN_AUTH_OPT
--
password
=
plug_dest
-
e
"SELECT current_user();SELECT user();"
2
>&
1
GRANT
PROXY
ON
new_dest
TO
plug_user
;
--
error
1
--
exec
$MYSQL
-
S
var
/
tmp
/
mysqld
.
1.
sock
-
u
plug_user
$PLUGIN_AUTH_OPT
--
password
=
new_dest
-
e
"SELECT current_user();SELECT user();"
2
>&
1
--
exec
$MYSQL
-
S
$MASTER_MYSOCK
-
u
plug_user
$PLUGIN_AUTH_OPT
--
password
=
new_dest
-
e
"SELECT current_user();SELECT user();"
2
>&
1
--
sorted_result
SELECT
user
,
plugin
,
authentication_string
FROM
mysql
.
user
WHERE
user
!=
'root'
;
DROP
USER
plug_user
,
new_dest
;
...
...
mysql-test/t/plugin_auth_qa_2.test
View file @
06a263e2
...
...
@@ -88,6 +88,7 @@ GRANT ALL PRIVILEGES ON test_user_db.* TO ''@'localhost' identified by 'dest_pas
GRANT
PROXY
ON
qa_test_5_dest
TO
qa_test_5_user
;
GRANT
PROXY
ON
qa_test_5_dest
TO
''
@
'localhost'
;
--
sorted_result
SELECT
user
,
plugin
,
authentication_string
,
password
FROM
mysql
.
user
WHERE
user
!=
'root'
;
--
echo
exec
MYSQL
PLUGIN_AUTH_OPT
-
h
localhost
-
P
MASTER_MYPORT
--
user
=
qa_test_5_user
--
password
=
qa_test_5_dest
test_user_db
-
e
"SELECT current_user(),user(),@@local.proxy_user,@@local.external_user;"
2
>&
1
...
...
@@ -105,6 +106,7 @@ CREATE USER qa_test_6_dest IDENTIFIED BY 'dest_passwd';
GRANT
ALL
PRIVILEGES
ON
test_user_db
.*
TO
qa_test_6_dest
identified
by
'dest_passwd'
;
GRANT
PROXY
ON
qa_test_6_dest
TO
qa_test_6_user
;
--
sorted_result
SELECT
user
,
plugin
,
authentication_string
,
password
FROM
mysql
.
user
;
--
echo
exec
MYSQL
PLUGIN_AUTH_OPT
-
h
localhost
-
P
MASTER_MYPORT
--
user
=
qa_test_6_user
--
password
=
qa_test_6_dest
test_user_db
-
e
"SELECT current_user(),user(),@@local.proxy_user,@@local.external_user;"
2
>&
1
...
...
@@ -112,6 +114,7 @@ SELECT user,plugin,authentication_string,password FROM mysql.user;
--
exec
$MYSQL
$PLUGIN_AUTH_OPT
-
h
localhost
-
P
$MASTER_MYPORT
--
user
=
qa_test_6_user
--
password
=
qa_test_6_dest
test_user_db
-
e
"SELECT current_user(),user(),@@local.proxy_user,@@local.external_user;"
2
>&
1
GRANT
PROXY
ON
qa_test_6_dest
TO
root
IDENTIFIED
WITH
qa_auth_interface
AS
'qa_test_6_dest'
;
--
sorted_result
SELECT
user
,
plugin
,
authentication_string
,
password
FROM
mysql
.
user
;
--
echo
exec
MYSQL
PLUGIN_AUTH_OPT
-
h
localhost
-
P
MASTER_MYPORT
--
user
=
root
--
password
=
qa_test_6_dest
test_user_db
-
e
"SELECT current_user(),user(),@@local.proxy_user,@@local.external_user;"
2
>&
1
...
...
@@ -119,6 +122,7 @@ SELECT user,plugin,authentication_string,password FROM mysql.user;
--
exec
$MYSQL
$PLUGIN_AUTH_OPT
-
h
localhost
-
P
$MASTER_MYPORT
--
user
=
root
--
password
=
qa_test_6_dest
test_user_db
-
e
"SELECT current_user(),user(),@@local.proxy_user,@@local.external_user;"
2
>&
1
REVOKE
PROXY
ON
qa_test_6_dest
FROM
root
;
--
sorted_result
SELECT
user
,
plugin
,
authentication_string
FROM
mysql
.
user
;
--
echo
exec
MYSQL
PLUGIN_AUTH_OPT
-
h
localhost
-
P
MASTER_MYPORT
--
user
=
root
--
password
=
qa_test_6_dest
test_user_db
-
e
"SELECT current_user(),user(),@@local.proxy_user,@@local.external_user;"
2
>&
1
...
...
@@ -128,6 +132,7 @@ SELECT user,plugin,authentication_string FROM mysql.user;
DROP
USER
qa_test_6_user
;
DROP
USER
qa_test_6_dest
;
DELETE
FROM
mysql
.
user
WHERE
user
=
'root'
AND
plugin
=
'qa_auth_interface'
;
--
sorted_result
SELECT
user
,
plugin
,
authentication_string
,
password
FROM
mysql
.
user
;
...
...
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