From 3efd178c050d911cfdff7e8d2ed4886b98b08b98 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 13 Mar 2013 00:05:54 -0700 Subject: Wed Mar 13 00:05:53 PDT 2013 --- community/nss-pam-ldapd/nss-pam-ldapd.install | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 community/nss-pam-ldapd/nss-pam-ldapd.install (limited to 'community/nss-pam-ldapd/nss-pam-ldapd.install') diff --git a/community/nss-pam-ldapd/nss-pam-ldapd.install b/community/nss-pam-ldapd/nss-pam-ldapd.install new file mode 100644 index 000000000..a8b93f218 --- /dev/null +++ b/community/nss-pam-ldapd/nss-pam-ldapd.install @@ -0,0 +1,12 @@ +post_install() { + getent passwd nslcd >> /dev/null || useradd -r -M -d /var/run/nslcd -s /bin/false nslcd +} + +post_upgrade() { + getent passwd nslcd >> /dev/null || useradd -r -M -s /bin/false nslcd +} + +pre_remove() { + userdel nslcd >/dev/null 2>&1 || true +} + -- cgit v1.2.3-54-g00ecf