On Mon, Sep 06, 2010 at 11:31:48PM +0200, Matthijs Möhlmann wrote: > On 09/06/2010 09:38 PM, Steve Langasek wrote: > > The commit comment is:
> > * Fix the upgrade procedure with the new slapd.defaults file. > > Matthijs, I can't understand your intention here. I'm sure that the last > > bit of the diff is wrong - we should *always* have a default fallback value > > for SLAPD_CONF, not just in the file-based case - but I don't understand the > > purpose of the first part of the diff. In what case is it necessary to > > override an already-set SLAPD_CONF variable on configure, and why does this > > not also apply to other conditions besides "postinst configure"? > > Without understanding that, I'm not sure what the right way is to clean this > > up. > Before 2.4.23-3 an empty value of SLAPD_CONF causes /etc/ldap/slapd.conf > automatically be chosen by the slapd process. After 2.4.23-3 we have a > sed one liner that automatically sets the SLAPD_CONF in the defaults > file. By *not* setting the SLAPD_CONF at that point people were able to > use /etc/ldap/slapd.conf as configuration style after version 2.4.23-3. Ok; I don't think it's reasonable to override the default behavior by *un*setting the variable. We should have sensible default behavior even with a completely empty /etc/default/slapd; and by "sensible" I mean "use slapd.d if present since it's preferred upstream, and if not present, fall back to slapd.conf". > For fixing this bug: are we going to support the *legacy* format in any > way? If the answer is no, then the last part of that commit should be > reverted. Well, cf. my latest comment on bug #593965; I would be ok with not supporting the legacy format at all. But, if we *do* support it, the way it should be supported is *not* by treating an unset $SLAPD_CONF as equivalent to /etc/ldap/slapd.conf. > PS: I'm sorry for the delay in responding, I had some busy days at work. No need to apologize to me at least, I only get time to work on this on the weekends... :) -- Steve Langasek Give me a lever long enough and a Free OS Debian Developer to set it on, and I can move the world. Ubuntu Developer http://www.debian.org/ [email protected] [email protected]
signature.asc
Description: Digital signature

