slapd init.d file fails to set -f or -F

Bug #292364 reported by Torsten Ekedahl
4
Affects Status Importance Assigned to Milestone
openldap (Ubuntu)
Fix Released
Low
Mathias Gug

Bug Description

In the init.d slapd script, -f $SLAPD_CONF or -F $SLAPD_CONF is added to $SLAPD_OPTIONS only if $SLAPD_PIDFILE is the empty string. This is strange as SLAPD_PIDFILE is one of the
variables that it is suggested that one could set in /etc/default/slapd. The result is that if one sets SLAPD_PIDFILE in /etc/default/slapd then setting also SLAPD_CONF in it will have no effect.

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 8.10
Package: slapd 2.4.11-0ubuntu6
ProcEnviron:
 LANGUAGE=en_US
 LC_CTYPE=sv_SE.UTF-8
 PATH=/usr/bin/X11:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/aldor/linux/1.0.2/bin:/home/matte/username/bin:/home/matte/username/texfiler/bin:.
 LANG=en_US.UTF-8
 SHELL=/usr/bin/zsh
SourcePackage: openldap
Uname: Linux 2.6.27-7-generic i686

Tags: apport-bug
Revision history for this message
Torsten Ekedahl (teke-lp) wrote :
Revision history for this message
Andreas Olsson (andol) wrote :

I can confirm this. Setting SLAPD_PIDFILE does in effect nullify the result of any value set to SLAPD_CONF.

The same goes for the Jaunty version (2.4.11-0ubuntu7).

Changed in openldap:
status: New → Confirmed
Mathias Gug (mathiaz)
Changed in openldap:
assignee: nobody → mathiaz
status: Confirmed → In Progress
importance: Undecided → Low
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package openldap - 2.4.15-1ubuntu2

---------------
openldap (2.4.15-1ubuntu2) jaunty; urgency=low

  * debian/slapd.postinst: create /var/run/slapd before updating its
    permissions (LP: #298928).
  * debian/slapd.init: Correclty set slapd config backend option even if the
    pidfile is configured in slapd default file (LP: #292364).
  * debian/apparmor-profile: support multiple databases to be stored under
    /var/lib/ldap/. (LP: #286614).

 -- Mathias Gug <email address hidden> Fri, 13 Mar 2009 13:56:12 -0400

Changed in openldap:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.