summary refs log tree commit diff
path: root/nixos/modules/config
diff options
context:
space:
mode:
authorMarkus Mueller <john.subscriber@markus.institute>2016-05-23 20:43:22 +0000
committerFranz Pletz <fpletz@fnordicwalking.de>2016-05-23 22:54:15 +0200
commit19ee3baa32d9cf74db392c1c88855a22f9391aff (patch)
treeaa9197586bca9eab8ca58ed17b9848d0a13f3a0e /nixos/modules/config
parent3f22610bd797bc4f47311dcd982bf45eb107713a (diff)
downloadnixlib-19ee3baa32d9cf74db392c1c88855a22f9391aff.tar
nixlib-19ee3baa32d9cf74db392c1c88855a22f9391aff.tar.gz
nixlib-19ee3baa32d9cf74db392c1c88855a22f9391aff.tar.bz2
nixlib-19ee3baa32d9cf74db392c1c88855a22f9391aff.tar.lz
nixlib-19ee3baa32d9cf74db392c1c88855a22f9391aff.tar.xz
nixlib-19ee3baa32d9cf74db392c1c88855a22f9391aff.tar.zst
nixlib-19ee3baa32d9cf74db392c1c88855a22f9391aff.zip
ldap module: fix activationScripts declaration
Diffstat (limited to 'nixos/modules/config')
-rw-r--r--nixos/modules/config/ldap.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/config/ldap.nix b/nixos/modules/config/ldap.nix
index a6657768e061..7064ef64b4c8 100644
--- a/nixos/modules/config/ldap.nix
+++ b/nixos/modules/config/ldap.nix
@@ -192,7 +192,7 @@ in
     system.activationScripts = mkIf insertLdapPassword {
       ldap = stringAfter [ "etc" "groups" "users" ] ''
         if test -f "${cfg.bind.password}" ; then
-          echo "bindpw "$(cat ${cfg.bind.password})"" | cat ${ldapConfig} - > /etc/ldap.conf.bindpw
+          echo "bindpw "$(cat ${cfg.bind.password})"" | cat ${ldapConfig.source} - > /etc/ldap.conf.bindpw
           mv -fT /etc/ldap.conf.bindpw /etc/ldap.conf
           chmod 600 /etc/ldap.conf
         fi