From b14f2408f1e6694fd9e108483aeb6fd60c164a54 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 2 Jul 2013 20:12:58 +0200 Subject: [pam] Restart nscd after patching nsswitch.conf --- remote/modules/pam/data/etc/systemd/system/activate-nss-ldap.service | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'remote/modules') 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 index a09b78ae..518681b6 100644 --- a/remote/modules/pam/data/etc/systemd/system/activate-nss-ldap.service +++ b/remote/modules/pam/data/etc/systemd/system/activate-nss-ldap.service @@ -2,5 +2,7 @@ Description=Activate NSS-LDAP lookups [Service] -Type=simple +Type=oneshot ExecStart=/opt/openslx/bin/sed -i -e 's/^passwd.*/passwd:\t\tfiles ldap/g;s/^group.*/group:\t\tfiles ldap/g' /etc/nsswitch.conf +ExecStart=/usr/bin/systemctl restart nscd + -- cgit v1.2.3-55-g7522