~ubuntu-branches/ubuntu/trusty/mariadb-5.5/trusty-proposed

« back to all changes in this revision

Viewing changes to mysql-test/suite/plugins/t/pam.test

  • Committer: Package Import Robot
  • Author(s): Otto Kekäläinen
  • Date: 2013-12-22 10:27:05 UTC
  • Revision ID: package-import@ubuntu.com-20131222102705-mndw7s12mz0szrcn
Tags: upstream-5.5.32
Import upstream version 5.5.32

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
--source pam_init.inc
 
3
 
 
4
--write_file $MYSQLTEST_VARDIR/tmp/pam_good.txt
 
5
not very secret challenge
 
6
9225
 
7
select user(), current_user(), database();
 
8
EOF
 
9
 
 
10
--write_file $MYSQLTEST_VARDIR/tmp/pam_bad.txt
 
11
not very secret challenge
 
12
9224
 
13
select user(), current_user(), database();
 
14
EOF
 
15
 
 
16
--echo #
 
17
--echo # athentication is successful, challenge/pin are ok
 
18
--echo # note that current_user() differs from user()
 
19
--echo #
 
20
--exec $MYSQL_TEST -u test_pam --plugin-dir=$plugindir < $MYSQLTEST_VARDIR/tmp/pam_good.txt
 
21
 
 
22
--echo #
 
23
--echo # athentication is unsuccessful
 
24
--echo #
 
25
--error 1
 
26
--exec $MYSQL_TEST -u test_pam --plugin-dir=$plugindir < $MYSQLTEST_VARDIR/tmp/pam_bad.txt
 
27
 
 
28
--remove_file $MYSQLTEST_VARDIR/tmp/pam_good.txt
 
29
--remove_file $MYSQLTEST_VARDIR/tmp/pam_bad.txt
 
30
drop user test_pam;
 
31
drop user pam_test;
 
32
uninstall plugin pam;
 
33