nixpkgs/nixos/modules
Florian Klink d180bf3862 security.pam: make pam_unix.so required, not sufficient
Having pam_unix set to "sufficient" means early-succeeding account
management group, as soon as pam_unix.so is succeeding.

This is not sufficient. For example, nixos modules might install nss
modules for user lookup, so pam_unix.so succeeds, and we end the stack
successfully, even though other pam account modules might want to do
more extensive checks.

Other distros seem to set pam_unix.so to 'required', so if there are
other pam modules in that management group, they get a chance to do some
validation too.

For SSSD, @PsyanticY already added a workaround knob in
https://github.com/NixOS/nixpkgs/pull/31969, while stating this should
be the default anyway.

I did some thinking in what could break - after this commit, we require
pam_unix to succeed, means we require `getent passwd $username` to
return something.
This is the case for all local users due to the passwd nss module, and
also the case for all modules installing their nss module to
nsswitch.conf - true for ldap (if not explicitly disabled) and sssd.

I'm not so sure about krb5, cc @eqyiel for opinions. Is there some nss
module loaded? Should the pam account module be placed before pam_unix?

We don't drop the `security.pam.services.<name?>.sssdStrictAccess`
option, as it's also used some lines below to tweak error behaviour
inside the pam sssd module itself (by changing it's 'control' field).

This is also required to get admin login for Google OS Login working
(#51566), as their pam_oslogin_admin accounts module takes care of sudo
configuration.
2018-12-21 15:31:07 +01:00
..
config nixos: add XDG sounds module 2018-12-18 00:32:13 +01:00
hardware Merge pull request #47297 from greydot/bladerf 2018-12-18 09:29:32 +01:00
i18n/input-method docs: format 2018-09-29 20:51:11 -04:00
installer installer: Adds AArch64 UEFI installer support. 2018-12-12 19:26:34 -05:00
misc nixos/cockroachdb: create new service 2018-12-01 19:07:49 -06:00
profiles Revert "zfs cannot be distributed. Disabling it in the isos." 2018-11-26 17:51:18 -05:00
programs Merge pull request #52485 from pablode/master 2018-12-18 23:18:27 +01:00
security security.pam: make pam_unix.so required, not sufficient 2018-12-21 15:31:07 +01:00
services Merge pull request #51813 from samueldr/aarch64/disable-non-arm-builds-part-1 2018-12-20 21:06:52 -05:00
system logind: make killUserProcesses an option (#51426) 2018-12-11 16:51:16 -05:00
tasks nixos: move system.autoUpgrade 2018-11-17 14:05:30 +01:00
testing Add ssh backdoor to VM tests infrastructure. 2018-09-28 10:53:08 +01:00
virtualisation Merge pull request #51393 from arianvp/container-names 2018-12-05 01:25:16 +01:00
module-list.nix Merge pull request #47297 from greydot/bladerf 2018-12-18 09:29:32 +01:00
rename.nix ckb-next: move option renames to nixos/modules/rename.nix for consistency 2018-11-06 00:50:00 +00:00