1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

MDEV-18686 Add option to PAM authentication plugin to allow case insensitive username matching

add a new option --pam-windbind-workaround for a pam plugin to
work around pam_winbind unconditional username lowercasing
This commit is contained in:
Sergei Golubchik
2019-04-18 11:53:36 +02:00
parent ed866e9301
commit 9ca3571cb8
3 changed files with 49 additions and 5 deletions

View File

@ -22,4 +22,24 @@ Now, the magic number!
PIN: ****
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: not very secret challenge
Now, the magic number!
PIN: ****
set global pam_winbind_workaround=1;
#
# athentication is successful
#
Challenge input first.
Enter: not very secret challenge
Now, the magic number!
PIN: ****
select user(), current_user(), database();
user() current_user() database()
PAM_TEST@localhost PAM_TEST@% test
drop user PAM_TEST;
uninstall plugin pam;