I tested with:
auth required pam_warn.so auth required pam_sasl.so debug account required pam_unix.so audit
in /etc/pam.d/mysqld
I generated password with:
echo 889 | sudo saslpasswd2 -c testuser
after this, I was able to authenticate to mysql with:
mysql -u testuser -p889
pam_sasl uses libsasl.
However, I was not able to get it working with saslauthd (or not sure if it works with saslauthd).
I tested with:
auth required pam_warn.so
auth required pam_sasl.so debug
account required pam_unix.so audit
in /etc/pam.d/mysqld
I generated password with:
echo 889 | sudo saslpasswd2 -c testuser
after this, I was able to authenticate to mysql with:
mysql -u testuser -p889
pam_sasl uses libsasl.
However, I was not able to get it working with saslauthd (or not
sure if it works with saslauthd).