Making the samba daemons see the nss modules (needed for ldap-unix-pam integration)

svn path=/nixos/trunk/; revision=26830
This commit is contained in:
Lluís Batlle i Rossell 2011-04-13 20:06:29 +00:00
parent e7c9266a70
commit d8a702f59f

View File

@ -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}";
};