summaryrefslogtreecommitdiff
path: root/net/openldap22/files
diff options
context:
space:
mode:
Diffstat (limited to 'net/openldap22/files')
-rw-r--r--net/openldap22/files/slapd.sh11
-rw-r--r--net/openldap22/files/slurpd.sh2
2 files changed, 6 insertions, 7 deletions
diff --git a/net/openldap22/files/slapd.sh b/net/openldap22/files/slapd.sh
index 0e3601b07e5c..e8f6ed6b018d 100644
--- a/net/openldap22/files/slapd.sh
+++ b/net/openldap22/files/slapd.sh
@@ -7,18 +7,18 @@ slapd_program=@@PREFIX@@/libexec/slapd
# Uncomment one of the following:
#
# IPv4 Only
-#slapd_args='-h ldap://0.0.0.0'
+#slapd_args='-u ldap -g ldap -h ldap://0.0.0.0'
#
# IPv6 and IPv4
-#slapd_ags='-h "ldap://[::] ldap://0.0.0.0"'
+#slapd_ags='-u ldap -g ldap -h "ldap://[::] ldap://0.0.0.0"'
#
# IPv6 Only
-#slapd_args='-h ldap://[::]'
+#slapd_args='-u ldap -g ldap -h ldap://[::]'
#
#
-slapd_args=
+slapd_args="-u ldap -g ldap"
-pidfile=/var/run/slapd.pid
+pidfile=/var/run/ldap/slapd.pid
case "$1" in
start)
@@ -31,7 +31,6 @@ start)
stop)
if [ -f $pidfile ]; then
kill `cat $pidfile`
- telnet localhost ldap </dev/null >/dev/null 2>&1
echo -n ' slapd'
rm $pidfile
else
diff --git a/net/openldap22/files/slurpd.sh b/net/openldap22/files/slurpd.sh
index 4551c5fb0c2d..9f347253a5d6 100644
--- a/net/openldap22/files/slurpd.sh
+++ b/net/openldap22/files/slurpd.sh
@@ -4,7 +4,7 @@
#
slurpd=@@PREFIX@@/libexec/slurpd
-pidfile=/var/run/slurpd.pid
+pidfile=/var/run/ldap/slurpd.pid
case "$1" in
start)