From d8a702f59f0c5b7510e3026c754a9b676cf9df6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Wed, 13 Apr 2011 20:06:29 +0000 Subject: [PATCH] Making the samba daemons see the nss modules (needed for ldap-unix-pam integration) svn path=/nixos/trunk/; revision=26830 --- modules/services/network-filesystems/samba.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/services/network-filesystems/samba.nix b/modules/services/network-filesystems/samba.nix index 9a285aa7728..1f249716f7c 100644 --- a/modules/services/network-filesystems/samba.nix +++ b/modules/services/network-filesystems/samba.nix @@ -59,6 +59,9 @@ let ${cfg.extraConfig} ''; + # This may include nss_ldap, needed for samba if it has to use ldap. + nssModulesPath = config.system.nssModules.path; + daemonJob = appName: args: { name = "samba-${appName}"; description = "Samba Service daemon ${appName}"; @@ -66,6 +69,8 @@ let startOn = "started samba"; stopOn = "stopping samba"; + environment = { LD_LIBRARY_PATH = nssModulesPath; }; + exec = "${samba}/sbin/${appName} ${args}"; };