wodby / mariadb

MariaDB docker container image
https://wodby.com/stacks/mariadb
GNU General Public License v2.0
49 stars 31 forks source link

PAM auth #15

Closed sooslaca closed 5 years ago

sooslaca commented 5 years ago

hi,

Would it be possible to add auth_pam? It's in the debian version by default.

root@c58c555fae11:/# ls -la /usr/lib/mysql/plugin/ | grep pam
-rw-r--r-- 1 root root  10512 May 13 19:06 auth_pam.so

If I'm right all you have to do is to install alpine package linux-pam-dev to build-deps and linux-pam to run-deps.

Thanks

csandanov commented 5 years ago

Added to latest, can be enabled via $MARIADB_PLUGIN_LOAD=auth_pam

sooslaca commented 5 years ago

Thanks @csandanov I tested and it works fine!

Some info for other users who might get here: nss-pam-ldapd should be also installed if you want mariadb to authenticate from ldap.

I think we can close this ticket, pam plugin has been added to the image.