1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

improve pam_cleartext.test a bit

This commit is contained in:
Sergei Golubchik
2016-08-03 17:50:45 +02:00
parent 5265243cc4
commit 75891eda11
2 changed files with 15 additions and 2 deletions

View File

@ -5,6 +5,9 @@ grant proxy on pam_test to test_pam;
show variables like 'pam%'; show variables like 'pam%';
Variable_name Value Variable_name Value
pam_use_cleartext_plugin ON pam_use_cleartext_plugin ON
#
# same test as in pam.test now fails
#
drop user test_pam; drop user test_pam;
drop user pam_test; drop user pam_test;
uninstall plugin pam; uninstall plugin pam;

View File

@ -3,10 +3,20 @@
show variables like 'pam%'; show variables like 'pam%';
--write_file $MYSQLTEST_VARDIR/tmp/pam_good.txt
not very secret challenge
9225
select user(), current_user(), database();
EOF
--echo #
--echo # same test as in pam.test now fails
--echo #
--error 1 --error 1
--exec echo FAIL | $MYSQL_TEST -u test_pam --plugin-dir=$plugindir --exec $MYSQL_TEST -u test_pam --plugin-dir=$plugindir < $MYSQLTEST_VARDIR/tmp/pam_good.txt
--remove_file $MYSQLTEST_VARDIR/tmp/pam_good.txt
drop user test_pam; drop user test_pam;
drop user pam_test; drop user pam_test;
uninstall plugin pam; uninstall plugin pam;