[Pkg-openldap-devel] Bug#546368: Post-installation script for slapd fails to update to new db version

Dmitry Katsubo dma_k at mail.ru
Sat Sep 12 20:05:47 UTC 2009


Package: slapd
Version: 2.4.17-1

When upgrading the distro from lenny to sid I have faced the following
problem: after update the directory /var/lib/ldap was empty and it was
reported that slapd configuration failed. I think, it should be reported
in more verbose way, because in my case LDAP is the source of
authentication for the users.

=== console output ===
Setting up slapd (2.4.17-1) ...
  Backing up /etc/ldap/slapd.conf in /var/backups/slapd-2.4.11-1... done.
  Moving old database directories to /var/backups:
  Loading from /var/backups/slapd-2.4.11-1:
  - directory cn=centurion... failed.

Loading the database from the LDIF dump failed with the following
error while running slapadd:
    slapadd: line 1: database #1 (cn=centurion) not configured to hold
"dc=nodomain"; no database configured for that naming context
=== end ===

That happens because slapcat produces two dummy entries in the beginning
of dump output, which do not belong to "cn=centurion" context.

These two entries have to be filtered during the dumping, e.g.:

slapcat -a '(entryDN:dnSubtreeMatch:=cn=centurion)'

The post installation script should also ignore the warnings, which
slapd produces while parsing the configuration file.

The /etc/ldap/slapd.conf file is attached.

With best wishes,
Dmitry

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: slapd.conf
URL: <http://lists.alioth.debian.org/pipermail/pkg-openldap-devel/attachments/20090912/e519ea8d/attachment.asc>


More information about the Pkg-openldap-devel mailing list