In order to use the /etc/libpam-mysql.conf configuration file you simply
type something like the following in your pam-file (eg. /etc/pam.d/ssh-pam-mysql):

auth    optional /lib/$(DEB_HOST_MULTIARCH)/security/pam_mysql.so config_file=/etc/libpam-mysql.conf
account required /lib/$(DEB_HOST_MULTIARCH)/security/pam_mysql.so config_file=/etc/libpam-mysql.conf

And edit /etc/libpam-mysql.conf to your liking. The default assumes no
password for root to use mysql and simply uses the mysql accounts.

This is not necessarily a good idea. Each pam file in /etc/pam.d 
must specify an independient configuration file!


Lars Bahner <bahner@debian.org> -- Mon Jan 26 02:56:00 CET 2009
