dualfroz 72650150d0 fix #5368: pam: say that a failed password change is about the host user
Users of the PAM realm are users of the host system, and setting their
password runs usermod on the node handling the request. If the user
only got added to the PAM realm, but does not exist on the host, this
failed with:

  change password failed: user 'jdoe' does not exist

which is confusing, as the user is shown in the user list of the web UI
and the message does not say that the user on the host is meant.

Mention the PAM user and the host system in the error message, so that
it reads:

  changing the password of the PAM user 'jdoe' on the host system
  failed: user 'jdoe' does not exist

The output of usermod is still added at the end, so this helps with its
other errors too.

Signed-off-by: Michal Fox <me@dualfroz.com>
2026-10-02 16:51:26 +02:00
S
Description
My contributions to proxmox-git/pve-access-control: 7 commits
71 KiB
0 Stars 1 Watchers 0 Forks
Languages
Perl 100%