summaryrefslogtreecommitdiffstats
path: root/remote
diff options
context:
space:
mode:
Diffstat (limited to 'remote')
-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