From 0de3a0cff3853b4eda76f608d8ada9bd5ac6d379 Mon Sep 17 00:00:00 2001 From: Rickard Nilsson Date: Fri, 14 Sep 2012 00:39:11 +0200 Subject: [PATCH] nscd-invalidate: Invalidate passwd and group databases also I had some problems with LDAP user lookups not working properly at boot. I found that invalidating passwd and group on the ip-up event (when nscd-invalidate starts) helped a bit. --- modules/services/system/nscd.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/services/system/nscd.nix b/modules/services/system/nscd.nix index 6f35cd30f58..ca5ac428a9d 100644 --- a/modules/services/system/nscd.nix +++ b/modules/services/system/nscd.nix @@ -64,7 +64,12 @@ in description = "Invalidate NSCD cache"; startOn = "ip-up or config-changed"; task = true; - exec = "${pkgs.glibc}/sbin/nscd --invalidate hosts"; + path = [ pkgs.glibc ]; + exec = '' + nscd --invalidate=passwd + nscd --invalidate=group + nscd --invalidate=hosts + ''; }; };