]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/home/pam_systemd_home.c
pam-util: implement our own pam_prompt() replacement, that doesn't log loudly
authorLennart Poettering <lennart@poettering.net>
Tue, 28 Nov 2023 10:02:56 +0000 (11:02 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 10 Jan 2024 19:06:40 +0000 (19:06 +0000)
commit52e5b950dcc0cf047d61f5813695ec8f28b28e3d
treecc5448a8e1e6c82ebd917bc5d4caf69724492b88
parent54cc0367cbfc2f6fbfc8748da115d87fab77a160
pam-util: implement our own pam_prompt() replacement, that doesn't log loudly

pam_prompt() will log very noisely at high error levels if it is called
without a conversation function that works. This is however a frequent
case, given that ssh doesn't provide one. To tone down the misleading
logging a bit, implement our own pam_prompt_graceful() that is just like
pam_prompt(), but reports errors back the caller who then logs (which we
generally do anyway).
src/home/pam_systemd_home.c
src/shared/pam-util.c
src/shared/pam-util.h