mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
plugin renamed socket_peercred -> unix_socket.
test added.
This commit is contained in:
30
mysql-test/suite/plugins/r/unix_socket.result
Normal file
30
mysql-test/suite/plugins/r/unix_socket.result
Normal file
@ -0,0 +1,30 @@
|
||||
install plugin unix_socket soname 'auth_socket.so';
|
||||
#
|
||||
# with named user
|
||||
#
|
||||
create user USER identified via unix_socket;
|
||||
#
|
||||
# name match = ok
|
||||
#
|
||||
select user(), current_user(), database();
|
||||
user() current_user() database()
|
||||
USER@localhost USER@% test
|
||||
#
|
||||
# name does not match = failure
|
||||
#
|
||||
drop user USER;
|
||||
#
|
||||
# and now with anonymous user
|
||||
#
|
||||
grant SELECT ON test.* TO '' identified via unix_socket;
|
||||
#
|
||||
# name match = ok
|
||||
#
|
||||
select user(), current_user(), database();
|
||||
user() current_user() database()
|
||||
USER@localhost @% test
|
||||
#
|
||||
# name does not match = failure
|
||||
#
|
||||
delete from mysql.user where user='';
|
||||
uninstall plugin unix_socket;
|
Reference in New Issue
Block a user