| 1 |
let $PAM_PLUGIN_VERSION= $AUTH_PAM_SO; |
| 2 |
--source pam_init.inc |
| 3 |
|
| 4 |
show variables like 'pam_use_%'; |
| 5 |
|
| 6 |
--write_file $MYSQLTEST_VARDIR/tmp/pam_good.txt |
| 7 |
not very secret challenge |
| 8 |
9225 |
| 9 |
select user(), current_user(), database(); |
| 10 |
EOF |
| 11 |
|
| 12 |
--echo # |
| 13 |
--echo # same test as in pam.test now fails |
| 14 |
--echo # |
| 15 |
--error 1 |
| 16 |
--exec $MYSQL_TEST -u test_pam < $MYSQLTEST_VARDIR/tmp/pam_good.txt |
| 17 |
--error 1 |
| 18 |
--exec $MYSQL_TEST -u test_pam -p'something' < $MYSQLTEST_VARDIR/tmp/pam_good.txt |
| 19 |
|
| 20 |
--remove_file $MYSQLTEST_VARDIR/tmp/pam_good.txt |
| 21 |
|
| 22 |
--echo # |
| 23 |
--echo # success |
| 24 |
--echo # |
| 25 |
--exec $MYSQL -u test_pam -p'cleartext good' -e 'select user(), current_user(), database()' |
| 26 |
|
| 27 |
--echo # |
| 28 |
--echo # failure |
| 29 |
--echo # |
| 30 |
--error 1 |
| 31 |
--exec $MYSQL -u test_pam -p'cleartext bad' -e 'select user(), current_user(), database()' |
| 32 |
|
| 33 |
drop user test_pam; |
| 34 |
drop user pam_test; |
| 35 |
let $count_sessions= 1; |
| 36 |
--source include/wait_until_count_sessions.inc |
| 37 |
uninstall plugin pam; |