Skip to content
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

pam_sss sends error messages as informational messages #7863

Open
MrGizful opened this issue Mar 4, 2025 · 0 comments
Open

pam_sss sends error messages as informational messages #7863

MrGizful opened this issue Mar 4, 2025 · 0 comments

Comments

@MrGizful
Copy link

MrGizful commented Mar 4, 2025

Environment:

OS: Ubuntu 24.04.2 LTS
SSSD: 2.9.4
Domains: tested on AD and FreeIPA

Hi, I'm currently working on creating a custom greeter and have encountered a problem with pam_sss. It sends error messages as informational messages (Calling pam_prompt function with PAM_TEXT_INFO type instead of PAM_ERROR_MSG). This makes it difficult to display errors properly in the greeter. Below is a section from the auth.log file:

2025-03-04T09:24:05.217439+03:00 ubuntu-lts-en login[4452]: PAM unable to dlopen(pam_lastlog.so): /usr/lib/security/pam_lastlog.so: cannot open shared object file: No such file or directory
2025-03-04T09:24:05.217487+03:00 ubuntu-lts-en login[4452]: PAM adding faulty module: pam_lastlog.so
2025-03-04T09:24:07.814285+03:00 ubuntu-lts-en login[4452]: pam_unix(login:auth): authentication failure; logname=igor uid=0 euid=0 tty=/dev/pts/2 ruser= rhost=  [email protected]
2025-03-04T09:24:07.980701+03:00 ubuntu-lts-en login[4452]: pam_sss(login:auth): authentication failure; logname=igor uid=0 euid=0 tty=/dev/pts/2 ruser= rhost= [email protected]
2025-03-04T09:24:07.980786+03:00 ubuntu-lts-en login[4452]: pam_sss(login:auth): received for user [email protected]: 12 (Authentication token is no longer valid; new one required)
2025-03-04T09:24:08.116928+03:00 ubuntu-lts-en login[4452]: pam_sss(login:account): User info message: Password expired. Change your password now.
2025-03-04T09:24:08.117140+03:00 ubuntu-lts-en login[4452]: pam_unix(login:chauthtok): user "[email protected]" does not exist in /etc/passwd
2025-03-04T09:24:19.346265+03:00 ubuntu-lts-en login[4452]: pam_unix(login:chauthtok): user "[email protected]" does not exist in /etc/passwd
2025-03-04T09:24:19.545395+03:00 ubuntu-lts-en login[4452]: pam_sss(login:chauthtok): User info message: Password change failed. Server message: Password does not contain enough character classes#012#012Password not changed.
2025-03-04T09:24:19.545532+03:00 ubuntu-lts-en login[4452]: pam_sss(login:chauthtok): Password change failed for user [email protected]: 20 (Authentication token manipulation error)
2025-03-04T09:24:19.545588+03:00 ubuntu-lts-en login[4452]: Authentication token manipulation error

So I have a couple of questions:

  1. Is this behavior correct?
  2. If it is, what was the reason behind it?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant