summaryrefslogtreecommitdiff
path: root/package/openldap/files/openldap-slapd.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'package/openldap/files/openldap-slapd.postinst')
-rw-r--r--package/openldap/files/openldap-slapd.postinst5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/openldap/files/openldap-slapd.postinst b/package/openldap/files/openldap-slapd.postinst
new file mode 100644
index 000000000..d6ecee377
--- /dev/null
+++ b/package/openldap/files/openldap-slapd.postinst
@@ -0,0 +1,5 @@
+#!/bin/sh
+. $IPKG_INSTROOT/etc/functions.sh
+add_user slapd $(get_next_uid) $(get_next_gid) /var/run/slapd
+add_group slapd $(get_next_gid)
+add_rcconf 'use "YES" to enable' slapd NO