From e598fdf2294998b233d11ae707dc22230b5d67e2 Mon Sep 17 00:00:00 2001 From: Michael Raitza Date: Thu, 7 Jun 2018 16:44:04 +0200 Subject: [PATCH] dbus: Add NSS modules path to dbus system bus service DBus seems to resolve user IDs directly via glibc, circumventing nscd. In more advanced setups this leads to user's coming from LDAP or SSSD not being resolved by the dbus system bus daemon. The effect for such users is, that all access to the system bus (e.g. busctl or nmcli) is denied. Adding the respective NSS modules to the service's environment solves the issue the same way it does for nscd. --- nixos/modules/services/system/dbus.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/system/dbus.nix b/nixos/modules/services/system/dbus.nix index 643bec18814..248df7351a8 100644 --- a/nixos/modules/services/system/dbus.nix +++ b/nixos/modules/services/system/dbus.nix @@ -100,6 +100,7 @@ in # Don't restart dbus-daemon. Bad things tend to happen if we do. reloadIfChanged = true; restartTriggers = [ configDir ]; + environment = { LD_LIBRARY_PATH = config.system.nssModules.path; }; }; systemd.user = {