4
--write_file $MYSQLTEST_VARDIR/tmp/pam_good.txt
5
not very secret challenge
7
select user(), current_user(), database();
10
--write_file $MYSQLTEST_VARDIR/tmp/pam_bad.txt
11
not very secret challenge
13
select user(), current_user(), database();
17
--echo # athentication is successful, challenge/pin are ok
18
--echo # note that current_user() differs from user()
20
--exec $MYSQL_TEST -u test_pam --plugin-dir=$plugindir < $MYSQLTEST_VARDIR/tmp/pam_good.txt
23
--echo # athentication is unsuccessful
26
--exec $MYSQL_TEST -u test_pam --plugin-dir=$plugindir < $MYSQLTEST_VARDIR/tmp/pam_bad.txt
28
--remove_file $MYSQLTEST_VARDIR/tmp/pam_good.txt
29
--remove_file $MYSQLTEST_VARDIR/tmp/pam_bad.txt