Is there a way to authenticate a remote MySQL/MariaDB user against the local Linux user account by the same username? I am thinking maybe there is a plugin that validates the user using /etc/passwd?
Hypothetical example:
CREATE USER 'newuser'@'remotehost' IDENTIFIED WITH auth_linux;
Use case: Lets say I change the password for a Linux user account. I would like to avoid having to update the password for the MySQL user as well, but having it being the same.
You want to refer to authentication plugins in particular PAM. It looks like that is an Enterprise feature. You might be able to use the open source versions from Percona or MariaDB PAM.
INSTALL SONAME 'auth_pam';
CREATE USER username@hostname IDENTIFIED VIA pam;