Author: viric
Date: Wed Apr 13 20:06:29 2011
New Revision: 26830
URL: https://svn.nixos.org/websvn/nix/?rev=26830&sc=1
Log:
Making the samba daemons see the nss modules (needed for ldap-unix-pam
integration)
Modified:
nixos/trunk/modules/services/network-filesystems/samba.nix
Modified: nixos/trunk/modules/services/network-filesystems/samba.nix
==============================================================================
--- nixos/trunk/modules/services/network-filesystems/samba.nix Wed Apr 13
17:53:39 2011 (r26829)
+++ nixos/trunk/modules/services/network-filesystems/samba.nix Wed Apr 13
20:06:29 2011 (r26830)
@@ -59,6 +59,9 @@
${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 @@
startOn = "started samba";
stopOn = "stopping samba";
+ environment = { LD_LIBRARY_PATH = nssModulesPath; };
+
exec = "${samba}/sbin/${appName} ${args}";
};
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits