nixpkgs/nixos/modules/security
Wanja Zaeske 305b633423 nixos/modules/security/pam: fix #95798 & #128116
Previously, `pam_unix.so` was `required` to set PAM_AUTHTOK so that
dependent pam modules (such as gnome keyering) could use the password
(for example to unlock a keyring) upon login of the user. This however
broke any additional auth providers (such as AD or LDAP): for any
non-local user `pam_unix.so` will not yield success, thus eventually the
auth would fail (even the following auth providers were actually
executed, they could not overrule the already failed auth).

This change replaces `required` by `optional`. Therefore, the
`pam_unix.so` is executed and can set the PAM_AUTHTOK for the following
optional modules, _even_ if the user is not a local user. Therefore, the
gnome keyring for example is unlocked both for local and additional
users upon login, and login is working for non-local users via
LDAP/AD.
2022-05-18 15:22:46 +02:00
..
acme nixos/acme: ensure web servers using certs can access them 2022-01-08 15:05:34 -05:00
apparmor apparmor: Fix cups-client typo 2021-08-23 00:50:15 -07:00
wrappers Merge pull request #156822 from xfix/wrapper-assert-argc-at-least-one 2022-05-16 18:52:51 +02:00
apparmor.nix nixos/security/apparmor: utillinux -> util-linux 2021-05-17 17:14:08 +02:00
audit.nix
auditd.nix
ca.nix nixos/ca: use cacert package build for options and p11-kit output 2021-10-08 01:21:57 +00:00
chromium-suid-sandbox.nix nixos: explicitely set security.wrappers ownership 2021-09-13 13:48:13 +02:00
dhparams.nix treewide: set defaultText for options using simple path defaults 2021-12-09 01:12:13 +01:00
doas.nix nixos/terminfo: inherit TERMINFO* env vars also for doas 2021-11-08 14:05:24 -08:00
duosec.nix nixos: explicitely set security.wrappers ownership 2021-09-13 13:48:13 +02:00
google_oslogin.nix google-compute-config: update config 2022-02-05 23:33:10 +03:00
lock-kernel-modules.nix nixos/lock-kernel-modules: reorder before/after 2021-09-19 12:06:00 +02:00
misc.nix nixos/nix-daemon: use structural settings 2022-01-26 21:04:50 -05:00
oath.nix
pam_mount.nix nixos/pam_mount: add more config options 2022-04-09 15:33:13 +02:00
pam_usb.nix nixos: explicitely set security.wrappers ownership 2021-09-13 13:48:13 +02:00
pam.nix nixos/modules/security/pam: fix #95798 & #128116 2022-05-18 15:22:46 +02:00
polkit.nix nixos/polkit: don't enable by default 2022-01-27 01:45:44 +01:00
rngd.nix nixos/rngd: Remove module entirely, leave an explaination 2021-02-21 01:32:50 +01:00
rtkit.nix nixos: define the primary group of users where needed 2021-09-12 14:59:30 +02:00
sudo.nix nixos/pam: add support for pam-ussh 2022-03-13 17:31:46 +00:00
systemd-confinement.nix nixos/systemd-confinement: Allow shipped unit file 2022-03-02 11:42:44 -08:00
tpm2.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00