mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 20:12:31 +01:00
c388e9c49d
For some reason the test authentication plugin accepted connection with arbitrary password. But the intention of the plugin is that password should equal to the authentication string and in the later versions of the server connection fails if password is wrong. So I have updated auth_rpl test to specify the correct password.
24 lines
733 B
Text
24 lines
733 B
Text
include/master-slave.inc
|
|
[connection master]
|
|
[connection slave]
|
|
include/stop_slave.inc
|
|
[connection master]
|
|
CREATE USER 'plug_user' IDENTIFIED WITH 'test_plugin_server' AS 'plug_user';
|
|
GRANT REPLICATION SLAVE ON *.* TO plug_user;
|
|
FLUSH PRIVILEGES;
|
|
[connection slave]
|
|
CHANGE MASTER TO
|
|
MASTER_USER= 'plug_user',
|
|
MASTER_PASSWORD= 'plug_user';
|
|
include/start_slave.inc
|
|
# Slave in-sync with master now.
|
|
SELECT user, plugin, authentication_string FROM mysql.user WHERE user LIKE 'plug_user';
|
|
user plugin authentication_string
|
|
plug_user test_plugin_server plug_user
|
|
# Cleanup (on slave).
|
|
include/stop_slave.inc
|
|
CHANGE MASTER TO MASTER_USER='root';
|
|
DROP USER 'plug_user';
|
|
# Cleanup (on master).
|
|
DROP USER 'plug_user';
|
|
include/rpl_end.inc
|