mirror of
https://github.com/MariaDB/server.git
synced 2025-07-24 19:42:23 +03:00
2. dialog plugin now always returns mysql->password if non-empty and the first question is of password type 3. split get_tty_password into get_tty_password_buff and strdup. 4. dialog plugin now uses get_tty_password by default 5. dialog.test 6. moved small tests of individual plugins into a dedicated suite
27 lines
747 B
Plaintext
27 lines
747 B
Plaintext
install plugin three_attempts soname 'dialog.so';
|
|
create user test_dialog identified via three_attempts using 'SECRET';
|
|
#
|
|
# -pSECRET is picked up, no questions asked.
|
|
#
|
|
select user(), current_user();
|
|
user() current_user()
|
|
test_dialog@localhost test_dialog@%
|
|
#
|
|
# without -p. up to three questions are asked on the stdin.
|
|
# athentication is successful, the correct pasword is on the third line
|
|
#
|
|
Password, please: ***
|
|
Password, please: ****
|
|
Password, please: ******
|
|
select user(), current_user();
|
|
user() current_user()
|
|
test_dialog@localhost test_dialog@%
|
|
#
|
|
# athentication is unsuccessful, first three lines are all wrong
|
|
#
|
|
Password, please: ***
|
|
Password, please: ****
|
|
Password, please: *****
|
|
drop user test_dialog;
|
|
uninstall plugin three_attempts;
|