mirror of
https://github.com/MariaDB/server.git
synced 2025-02-01 03:21:53 +01:00
c39877071a
mysql-test-run auto-disables all optional plugins. mysql-test/include/default_client.cnf: no @OPT.plugindir anymore mysql-test/include/default_mysqld.cnf: don't disable plugins manually - mtr can do it better mysql-test/suite/innodb/t/innodb_bug47167.test: mtr now uses suite-dir as an include path mysql-test/suite/innodb/t/innodb_file_format.test: mtr now uses suite-dir as an include path mysql-test/t/partition_binlog.test: this test uses partitions storage/example/mysql-test/mtr/t/source.result: update results. as mysqltest includes the correct overlayed include storage/innobase/handler/ha_innodb.cc: the assert is wrong
44 lines
1.1 KiB
Text
44 lines
1.1 KiB
Text
|
|
--source include/not_embedded.inc
|
|
|
|
if (!$AUTH_PAM_SO) {
|
|
skip No pam auth plugin;
|
|
}
|
|
|
|
eval install plugin pam soname '$AUTH_PAM_SO';
|
|
create user test_pam identified via pam using 'mariadb_mtr';
|
|
create user pam_test;
|
|
grant proxy on pam_test to test_pam;
|
|
|
|
let $plugindir=`SELECT @@global.plugin_dir`;
|
|
|
|
--write_file $MYSQLTEST_VARDIR/tmp/pam_good.txt
|
|
not very secret challenge
|
|
9225
|
|
select user(), current_user(), database();
|
|
EOF
|
|
|
|
--write_file $MYSQLTEST_VARDIR/tmp/pam_bad.txt
|
|
not very secret challenge
|
|
9224
|
|
select user(), current_user(), database();
|
|
EOF
|
|
|
|
--echo #
|
|
--echo # athentication is successful, challenge/pin are ok
|
|
--echo # note that current_user() differts from user()
|
|
--echo #
|
|
--exec $MYSQL_TEST -u test_pam --plugin-dir=$plugindir < $MYSQLTEST_VARDIR/tmp/pam_good.txt
|
|
|
|
--echo #
|
|
--echo # athentication is unsuccessful
|
|
--echo #
|
|
--error 1
|
|
--exec $MYSQL_TEST -u test_pam --plugin-dir=$plugindir < $MYSQLTEST_VARDIR/tmp/pam_bad.txt
|
|
|
|
--remove_file $MYSQLTEST_VARDIR/tmp/pam_good.txt
|
|
--remove_file $MYSQLTEST_VARDIR/tmp/pam_bad.txt
|
|
drop user test_pam;
|
|
drop user pam_test;
|
|
uninstall plugin pam;
|
|
|