mirror of
https://github.com/MariaDB/server.git
synced 2025-02-12 00:15:35 +01:00
23 lines
507 B
Text
23 lines
507 B
Text
install plugin pam soname 'auth_pam.so';
|
|
create user test_pam identified via pam using 'mariadb_mtr';
|
|
grant all on test.* to test_pam;
|
|
create user pam_test;
|
|
grant all on test.* to pam_test;
|
|
grant proxy on pam_test to test_pam;
|
|
show variables like 'pam_use_%';
|
|
Variable_name Value
|
|
pam_use_cleartext_plugin ON
|
|
#
|
|
# same test as in pam.test now fails
|
|
#
|
|
#
|
|
# success
|
|
#
|
|
user() current_user() database()
|
|
test_pam@localhost pam_test@% NULL
|
|
#
|
|
# failure
|
|
#
|
|
drop user test_pam;
|
|
drop user pam_test;
|
|
uninstall plugin pam;
|