[Pkg-openldap-devel] Bug#742862: Bug#742862: Bug#742862: upgrade to 2.4.39-1 breaks slapd

Ryan Tandy ryan at nardis.ca
Tue Apr 1 16:41:16 UTC 2014


retitle 742862 slapd: /var/lib/ldap as a symlink breaks upgrade
severity 742862 important
tags 742862 + patch
thanks

On Mon, Mar 31, 2014 at 11:27 PM, Ryan Tandy <ryan at nardis.ca> wrote:
> On 31/03/14 11:18 PM, Erwan David wrote:
>> Note also that /etc/ldap and /var/lib/ldap both are symbolic links to
>> respectively /secure/etc/ldap and /secure/var/lib/ldap,/secure being
>> an encrypted disk used to store confidential infos.
>
> This is certainly interesting. The scripts take into account the
> possibility of /var/lib/ldap being a mountpoint, but maybe not a
> symlink.

That's exactly it. I'm lowering the severity of the bug because I
think this is an unusual configuration, even if the scripts should be
robust against it. When /var/lib/ldap is a symlink the scripts' find,
chown, and chgrp invocations operate on the symlink itself and not the
linked directory; easily fixed. I was able to reproduce exactly your
results under that configuration, and the attached patch fixes it.

As a workaround, you should be able to complete your upgrade with the
current package if you temporarily replace your symlink with a bind
mount. That worked for me when I tested it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-742862.patch
Type: text/x-patch
Size: 1574 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-openldap-devel/attachments/20140401/b568f789/attachment.bin>


More information about the Pkg-openldap-devel mailing list