-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crypt seems to fail #41
Comments
Thanks for the report. pam_mysql_check_passwd() returning 6 is PAM_MYSQL_ERR_MISMATCH. Could the wrong crypt type be being used? |
No. Not my bug. It worked on an older Debian server. Nothing has changed in the scripts. |
Hi everyone :) I've got the same issue on Debian 9 (Stretch) and 8 (Jessie). After recompiling the module with more logs I've found something strange into the function
It seems that something has changed on libpam but I'm not able to found what exactly. |
Apparently I am having the same issue on CentOS 8 (but for example not on Alpine 3.11).
Made twice and triple sure, that the hashes match. (Using crypt=1 and $6 crypt() hashes.) I then tried crypt=0 and plaintext password in the db, just to be sure:
No success. pam packages:
Edit: Quickly tried the same on a clean CentOS 7 container, same problem:
pam-MySQL is the latest version from this repository. Compilation and building the container image with docker is done like this:
|
We now have pre-releases of a new version using Meson and including some unit tests. Would you please retry with this version? |
I have encountered this problem .. for me it turns out there was a single space after a line in the pam-mysql.conf config file. |
Hmm. Coud you provide an example, @m3t4tr0n? |
Is there any known bug in Debian 9? My password is 100% correct and works well from all other applications connected to this mysql instance. Roundcube, dovecot, z-push, nextcloud... but not with postfix and smtp auth.
libpam-mysql/stable,now 0.8.0-1 amd64 [installed]
PAM module interfacing with MySQL databases
I cannot find documentation what pam_mysql_check_passwd() returning 6 or pam_sm_authenticate() returning 7 means. Debugging is on, but the passwords are not shown. So it is impossible to figure out what the root cause is.
pam_mysql is configured to use crypt=1. In Debian 7 it worked all well, but this was pam_mysql 0.7~RC1.
The text was updated successfully, but these errors were encountered: