[Pkg-openldap-devel] Lenny upgrade glitch

Steve Langasek vorlon at debian.org
Sun Feb 22 02:28:53 UTC 2009


On Sat, Feb 21, 2009 at 12:48:17PM -0500, Roberto C. Sánchez wrote:
> On Fri, Feb 20, 2009 at 10:57:21PM -0800, Steve Langasek wrote:

> > 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?

> I couldn't determine from the postinst what might be going on.  However,
> here is how I was able to replicate the problem:

> 1. install etch 4.0r7 base system from netinst CD
> 2. install slapd
> 3. change sources to lenny and update
> 4. upgrade aptitude
> 5. install 2.6.26 kernel and reboot
> 6. dist-upgrade
> 7. 'ls -l /var/lib/ldap' and see that the files are owned by root

Not reproducible using a chroot.  Here's the output from the upgrade of
slapd here:

Setting up slapd (2.4.11-1) ...
Installing new version of config file /etc/ldap/schema/README ...
Installing new version of config file /etc/ldap/schema/core.ldif ...
Installing new version of config file /etc/ldap/schema/openldap.ldif ...
Installing new version of config file /etc/ldap/schema/corba.schema ...
Installing new version of config file /etc/ldap/schema/core.schema ...
Installing new version of config file /etc/ldap/schema/cosine.schema ...
Installing new version of config file /etc/ldap/schema/dyngroup.schema ...
Installing new version of config file /etc/ldap/schema/inetorgperson.schema ...
Installing new version of config file /etc/ldap/schema/java.schema ...
Installing new version of config file /etc/ldap/schema/misc.schema ...
Installing new version of config file /etc/ldap/schema/nis.schema ...
Installing new version of config file /etc/ldap/schema/openldap.schema ...
Installing new version of config file /etc/ldap/schema/ppolicy.schema ...
Installing new version of config file /etc/default/slapd ...
Installing new version of config file /etc/init.d/slapd ...
  Backing up /etc/ldap/slapd.conf in /var/backups/slapd-2.3.30-5+etch2... done.
  Upgrading BDB 'checkpoint' options... .
  Moving old database directories to /var/backups:
  - directory dc=dodds,dc=net... done.
  Loading from /var/backups/slapd-2.3.30-5+etch2: 
  - directory dc=dodds,dc=net... done.
  - chowning database directory (openldap:openldap)... done
Starting OpenLDAP: slapd.

Still don't see how this would fail unless you had a modified
/etc/default/slapd.

-- 
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