Files
shadow/tests
Pierre Warnier 3de8b506ac build: ship binaries with PAM so passwd can change passwords (#220) (#225)
`pam` is not a default cargo feature, so every build path except the e2e
image compiled the interactive change path out of `passwd`. The tool
could report and lock accounts but not change a password:

    $ passwd alice
    shadow-rs: PAM support is not compiled in — cannot change password
    interactively

That covered the release archive, `make install` (the default install of
14 standalone binaries) and `make install-multicall`. Only the e2e image
passed --features pam, and its assertions stop at `passwd -S`, which
works without PAM — hence nobody noticed.

Enable the feature in the release build and in both Makefile targets, and
install libpam0g-dev on the release runner. The PAM headers are already a
documented build requirement.

Add an e2e assertion that the installed passwd is linked against libpam,
so this cannot regress silently again.

Closes #220.
2026-09-03 13:16:46 +02:00
..