-
Notifications
You must be signed in to change notification settings - Fork 202
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
Special characters causes [swaylock-1.7/pam.c:105] pam_authenticate failed: invalid credentials #268
Comments
Assuming your swaylock PAM stack (/etc/pam.d/swaylock) is similar to that of your login manager, then PAM having an issue with your password would make all logins fail. I assume that the password works in all other PAM promps on the system ( On the other hand, swaylock's password buffer is 1024 characters so length isn't meant to be an issue, and 40 isn't a particularly long password in the first place. To prove that the issue is length, you could try setting shorter passwords to find if a certain password length triggers the issue.
Calm down. |
Hi, @kennylevinsen.
It's a fresh Arch Linux installation. /etc/pam.d/swaylock
/etc/pam.d/login
/etc/pam.d/sudo
Of course, it works. I thought it could be because of the special characters or spaces, but not. The keyboard layout is correct, I can log in with special characters like: ¡¿!?#@/|. Then I tried with half of the password and it worked. This has been my mistake, because the last part contains tilde and accents like: ñ áéíóú àèìòù. (I will change my affected passwords because, now, the structure is public, and it is easy to make a mask in tools like hashcat if someone get the hash).
I tested it and it works. The buffer is not the problem. The problem is the accented characters: áéíóú... I changed my password to: á
|
That's helpful, probably a bug with our UTF-8 functions then. |
Our UTF-8 handling seems correct to me. |
My config: /etc/locale.gen
locale
/etc/vconsole.conf
/etc/sway/config
I also tested with the locale swaylock with |
Maybe Unicode normalization forms?
|
After three years of keeping my system session opened (unprotected with a password), and after reading all the related bugs, opening bugs in Arch and Gentoo bugzilla, I discovered the problem of: "[swaylock-1.7/pam.c:105] pam_authenticate failed: invalid credentials".
The problem is the password length. All my passwords are between 40 and 70 characters. Who the hell dares to question the size of my passwords?
I don't know if this is a PAM or a SwayLock buffer issue.
Please let me know if I should report a bug in any other place.
Possible related bugs:
#119
#169
swaywm/sway#3631
swaywm/sway#2773
swaywm/sway#2743
swaywm/sway#3632
https://bugs.gentoo.org/show_bug.cgi?id=829685
The text was updated successfully, but these errors were encountered: