Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 22657 - openldap-2.1.20 slapd having faulty init script.
Summary: openldap-2.1.20 slapd having faulty init script.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Nick Hadaway
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-12 00:10 UTC by Martti Rannanjärvi
Modified: 2003-06-14 10:51 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martti Rannanjärvi 2003-06-12 00:10:59 UTC
Hello.

The initd script of openldap-2.1.20 slapd seems to be a bit broken.
 - it installs slapd.conf to /etc/conf.d as slapd.conf so init script doesn't
find the file
 - has bad quotes.. slapd tells it has a parse error..

So here's the fix..

--- files/2.0/slapd.conf.orig   2003-06-12 12:59:28.000000000 +0300
+++ files/2.0/slapd.conf        2003-06-12 13:00:24.000000000 +0300
@@ -4,5 +4,5 @@
 # one uncomment this line or set any other server starting options
 # you may desire.
 #
-# OPTS="-h \'ldaps://0.0.0.0/ ldap://0.0.0.0/\'"
+# OPTS="-h ldaps:// ldap://"

--- openldap-2.1.20.ebuild.orig 2003-06-12 13:05:34.000000000 +0300
+++ openldap-2.1.20.ebuild      2003-06-12 13:05:55.000000000 +0300
@@ -162,7 +162,7 @@
        newexe ${FILESDIR}/2.0/slapd slapd
        newexe ${FILESDIR}/2.0/slurpd slurpd
        insinto /etc/conf.d
-       newins ${FILESDIR}/2.0/slapd.conf slapd.conf
+       newins ${FILESDIR}/2.0/slapd.conf slapd

        # install MDK's ssl cert script
        dodir /etc/openldap/ssl

--- slapd.orig  2003-06-12 13:06:54.000000000 +0300
+++ slapd       2003-06-12 13:07:11.000000000 +0300
@@ -9,7 +9,7 @@

 start() {
        ebegin "Starting ldap-server"
-       start-stop-daemon --start --quiet --pidfile /var/run/openldap/slapd.pid
--exec /usr/lib/openldap/slapd -- -u ldap -g ldap ${OPTS}
+       start-stop-daemon --start --quiet --pidfile /var/run/openldap/slapd.pid
--exec /usr/lib/openldap/slapd -- -u ldap -g ldap "${OPTS}"
        eend $?
 }
Comment 1 Nick Hadaway 2003-06-14 10:51:38 UTC
openldap-2.1.21 has been added to portage with the associated fix and I have updated the conf.d/init.d files as well.