You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
651 B

  1. install plugin pam soname 'auth_pam.so';
  2. create user test_pam identified via pam using 'mariadb_mtr';
  3. create user pam_test;
  4. grant proxy on pam_test to test_pam;
  5. #
  6. # athentication is successful, challenge/pin are ok
  7. # note that current_user() differs from user()
  8. #
  9. Challenge input first.
  10. Enter: not very secret challenge
  11. Now, the magic number!
  12. PIN: ****
  13. select user(), current_user(), database();
  14. user() current_user() database()
  15. test_pam@localhost pam_test@% test
  16. #
  17. # athentication is unsuccessful
  18. #
  19. Challenge input first.
  20. Enter: not very secret challenge
  21. Now, the magic number!
  22. PIN: ****
  23. drop user test_pam;
  24. drop user pam_test;
  25. uninstall plugin pam;