pam_mysql authenticates NOUSER
i'm trying to setup pam_mysql authentication to ssh logins but on the logs it seems that PAM tells pam_mysql to authenticate a NOUSER instead of the username I use (i.e. SELECT password FROM users WHERE username='NOUSER' and it should be SELECT password FROM users WHERE username='tempuser').
I'm quite positive it's a PAM-related problem but i just can't figure out what's wrong. Can anyone help please?