summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Bauer2013-05-23 20:17:08 +0200
committerJonathan Bauer2013-05-23 20:17:08 +0200
commitb2778ff5da701ac4c93efb665622f8f4e4b9adb8 (patch)
tree2387a3542d5851147a9725f71d447e864aa5ec35
parentfix MAC address for itnerface naming for udev (diff)
downloadtm-scripts-b2778ff5da701ac4c93efb665622f8f4e4b9adb8.tar.gz
tm-scripts-b2778ff5da701ac4c93efb665622f8f4e4b9adb8.tar.xz
tm-scripts-b2778ff5da701ac4c93efb665622f8f4e4b9adb8.zip
activate nss-ldap lookups before login
-rw-r--r--remote/modules/pam/data/etc/systemd/system/activate-nss-ldap.service8
1 files changed, 8 insertions, 0 deletions
diff --git a/remote/modules/pam/data/etc/systemd/system/activate-nss-ldap.service b/remote/modules/pam/data/etc/systemd/system/activate-nss-ldap.service
new file mode 100644
index 00000000..2cea725e
--- /dev/null
+++ b/remote/modules/pam/data/etc/systemd/system/activate-nss-ldap.service
@@ -0,0 +1,8 @@
+[Unit]
+Description=Activate NSS-LDAP lookups
+Wants=systemd-udevd.service
+After=systemd-udevd.service
+
+[Service]
+Type=simple
+ExecStart=sed -i.bak 's/passwd.*/passwd:\t\tfiles ldap/g;s/group.*/group:\t\tfiles ldap/g' /etc/nsswitch.conf