mirror of
https://github.com/MariaDB/server.git
synced 2025-07-05 12:42:17 +03:00
* wait() for the child process to die, let it rest in peace * fix incorrect parentheses * if there was no password on the command line or in .cnf file, pkt will be "", and we need to request the user to enter the password * make sure that auth->salt is always allocated on a permanent memroot. when called from set_user_salt_if_needed(), user_copy and its auth_str are on the thd memroot, but auth_copy->salt is then copied to auth->salt * adjust service files so that systemd wouldn't interfere with our setuid executables also * print the pam error message in debug mode
66 lines
1.5 KiB
Plaintext
66 lines
1.5 KiB
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: *************************
|
|
Now, the magic number!
|
|
PIN: 9225
|
|
select user(), current_user(), database();
|
|
user() current_user() database()
|
|
test_pam@localhost pam_test@% test
|
|
#
|
|
# athentication is unsuccessful
|
|
#
|
|
Challenge input first.
|
|
Enter: *************************
|
|
Now, the magic number!
|
|
PIN: 9224
|
|
#
|
|
# athentication is unsuccessful
|
|
#
|
|
Challenge input first.
|
|
Enter: ****************
|
|
Now, the magic number!
|
|
PIN: 616
|
|
#
|
|
# athentication is successful
|
|
#
|
|
Now, the magic number!
|
|
PIN: 9212
|
|
select user(), current_user(), database();
|
|
user() current_user() database()
|
|
test_pam@localhost pam_test@% test
|
|
#
|
|
# athentication is unsuccessful
|
|
#
|
|
Now, the magic number!
|
|
PIN: 9212
|
|
drop user test_pam;
|
|
drop user pam_test;
|
|
create user PAM_TEST identified via pam using 'mariadb_mtr';
|
|
#
|
|
# athentication is unsuccessful
|
|
#
|
|
Challenge input first.
|
|
Enter: *************************
|
|
Now, the magic number!
|
|
PIN: 9225
|
|
set global pam_winbind_workaround=1;
|
|
#
|
|
# athentication is successful
|
|
#
|
|
Challenge input first.
|
|
Enter: *************************
|
|
Now, the magic number!
|
|
PIN: 9225
|
|
select user(), current_user(), database();
|
|
user() current_user() database()
|
|
PAM_TEST@localhost PAM_TEST@% test
|
|
drop user PAM_TEST;
|
|
uninstall plugin pam;
|