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:
parent
e7c9266a70
commit
d8a702f59f
@ -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}";
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user