[Pkg-openldap-devel] Lenny upgrade glitch

Steve Langasek vorlon at debian.org
Sat Feb 21 06:57:21 UTC 2009


On Sat, Feb 21, 2009 at 01:19:03AM -0500, Roberto C. Sánchez wrote:
> I just upgraded my LDAP server to Lenny.  It appears that most of the
> files in /var/lib/ldap were changed from being owned by
> openldap:openldap to root:root.  This caused to slapd to fail to start.
> incidentally, it didn't log any messages.  I had to try and run slapd
> from the command line with debugging output (I suppose the debugging
> output would have also shown in the log if I had enabled it in the
> config file).

> Anyhow, I am not sure how the ownerships got tweaked.  However, when I
> compared to my most recent backup, everything in /var/lib/ldap was in
> fact owned by openldap:openldap.  Once I did a chown everything started
> up OK.  Is this a bug that someone else has seen?  Or could it be
> something peculiar to my upgrade experience?

An upgrade from etch to lenny requires a dump and reload of any directories,
which is done as root; then the directories are chowned to the user
specified as SLAPD_USER in /etc/default/slapd.  I haven't seen any other
reports of this failing; perhaps you could have a look at the slapd postinst
(which I'm afraid is very long) and suss out why this isn't working right in
your case?

-- 
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/
slangasek at ubuntu.com                                     vorlon at debian.org



More information about the Pkg-openldap-devel mailing list