summaryrefslogtreecommitdiff
path: root/community/nss-pam-ldapd/nss-pam-ldapd.install
diff options
context:
space:
mode:
Diffstat (limited to 'community/nss-pam-ldapd/nss-pam-ldapd.install')
-rw-r--r--community/nss-pam-ldapd/nss-pam-ldapd.install12
1 files changed, 12 insertions, 0 deletions
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
+}
+