mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
PAM plugin with test
This commit is contained in:
22
mysql-test/suite/plugins/r/pam.result
Normal file
22
mysql-test/suite/plugins/r/pam.result
Normal file
@ -0,0 +1,22 @@
|
||||
install plugin pam soname 'auth_pam.so';
|
||||
create user test_pam identified via pam using 'mariadb_mtr';
|
||||
#
|
||||
# athentication is successful, challenge/pin are ok
|
||||
# note that current_user() differts from user()
|
||||
#
|
||||
Challenge input first.
|
||||
Enter: not very secret challenge
|
||||
Now, the magic number!
|
||||
PIN: ****
|
||||
select user(), current_user(), database();
|
||||
user() current_user() database()
|
||||
test_pam@localhost pam_test@% test
|
||||
#
|
||||
# athentication is unsuccessful
|
||||
#
|
||||
Challenge input first.
|
||||
Enter: not very secret challenge
|
||||
Now, the magic number!
|
||||
PIN: ****
|
||||
drop user test_pam;
|
||||
uninstall plugin pam;
|
Reference in New Issue
Block a user