diff options
| author | Simon Rettberg | 2013-07-05 12:02:08 +0200 |
|---|---|---|
| committer | Simon Rettberg | 2013-07-05 12:02:08 +0200 |
| commit | 7c375528887dae948b29d6dad70ed807dd681c85 (patch) | |
| tree | ea9879b9e7b3ea4b621a0c97167f20ad74d4fec4 /remote/modules/pam/data/etc/systemd/system | |
| parent | [vmchooser] Create text file in floppy image that tells the guest the host's ... (diff) | |
| download | tm-scripts-7c375528887dae948b29d6dad70ed807dd681c85.tar.gz tm-scripts-7c375528887dae948b29d6dad70ed807dd681c85.tar.xz tm-scripts-7c375528887dae948b29d6dad70ed807dd681c85.zip | |
[pam] Cleanup, formatting, force nscd usage in nsswitch.conf, set timeouts for LDAP lookups
Diffstat (limited to 'remote/modules/pam/data/etc/systemd/system')
| -rw-r--r-- | remote/modules/pam/data/etc/systemd/system/activate-nss-ldap.service | 4 |
1 files changed, 3 insertions, 1 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 index 518681b6..bbac775a 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 @@ -1,8 +1,10 @@ [Unit] Description=Activate NSS-LDAP lookups +Before=graphical.target [Service] 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=-/opt/openslx/bin/mkdir /tmp/ldap +ExecStart=/opt/openslx/bin/sed -i -e 's/^passwd:.*$/passwd:\t\tcache files ldap/;s/^group:.*$/group:\t\tcache files ldap/;s/^hosts:.*files/hosts:\t\tcache files/' /etc/nsswitch.conf ExecStart=/usr/bin/systemctl restart nscd |
