mirror of
https://github.com/MariaDB/server.git
synced 2025-08-23 03:54:27 +03:00
New version of PAM plugin (v2.0) added along with the old v1.0. There the pam module is isolated in the auth_pam_tool application so cannot crash the server.
33 lines
766 B
Plaintext
33 lines
766 B
Plaintext
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;
|
|
#
|
|
# athentication is successful, challenge/pin are ok
|
|
# note that current_user() differs 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: ****
|
|
#
|
|
# athentication is unsuccessful
|
|
#
|
|
Challenge input first.
|
|
Enter: crash pam module
|
|
Now, the magic number!
|
|
PIN: ***
|
|
drop user test_pam;
|
|
drop user pam_test;
|
|
uninstall plugin pam;
|