[SRU] slapd fails to upgrade: requires libsasl2-2 (>= 2.1.24) installed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cyrus-sasl2 (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Precise |
Fix Released
|
High
|
Unassigned | ||
Quantal |
Fix Released
|
High
|
Unassigned | ||
openldap (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Quantal |
Fix Released
|
High
|
Unassigned |
Bug Description
I was trying to "apt-get install dpkg" to work around #944452 and got the following while trying to upgrade slapd:
Setting up slapd (2.4.28-1.1ubuntu4) ...
Use of uninitialized value $type in ucfirst at /usr/share/
Backing up /etc/ldap/
Moving old database directories to /var/backups:
Loading from /var/backups/
- directory dc=interlinx,
Loading the database from the LDIF dump failed with the following
error while running slapadd:
4f9c4903 slap_sasl_init: auxprop add plugin failed
slapadd: slap_init failed!
dpkg: error processing slapd (--configure):
subprocess installed post-installation script returned error exit status 1
This looks to be related to http://
This looks like a repeat of bug #628237. However, slapd 2.4.28-1.1/amd64
has a dependency on libsasl2-2 (>= 2.1.24), ...
Looking at the package info for slapd:
Package: slapd
Priority: optional
Section: net
Installed-Size: 4064
Maintainer: Ubuntu Developers <email address hidden>
Original-
Architecture: i386
Source: openldap
Version: 2.4.28-1.1ubuntu4
Replaces: ldap-utils (<< 2.2.23-3), libldap2
Provides: ldap-server, libslapi-2.4-2
Depends: libc6 (>= 2.15), libdb5.1, libldap-2.4-2 (= 2.4.28-1.1ubuntu4), libltdl7 (>= 2.4.2), libodbc1 (>= 2.2.11) | unixodbc (>= 2.2.11), libperl5.14 (>= 5.14.2), libsasl2-2, libslp1, libwrap0 (>= 7.6-4~), coreutils (>= 4.5.1-1), psmisc, perl (>> 5.8.0) | libmime-
We can see that it's not requiring a newer libsasl2-2.
At this point I did an "apt-get install libsasl2-2" and it installed the new libsasl2-2 and allowed the configuration of slapd to finish.
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: slapd 2.4.28-1.1ubuntu4
ProcVersionSign
Uname: Linux 2.6.32-22-generic i686
Architecture: i386
Date: Sat Apr 28 15:56:29 2012
ProcEnviron:
LANG=en_CA.UTF-8
SHELL=/bin/bash
SourcePackage: openldap
-- SRU Justification --
[Impact]
slapd's maintainer scripts make use of utilities like slapcat and slapadd which require a running slapd server, however, the relationship between slapd and libsasl2-2 packages do not take into account a binary incompatability introduced with 2.4.28-1.1. As a result, libsasl2-2 is not upgraded until after slapd, slapd fails to start (with error msg cited in the bugs), and maintainer scripts fail during upgrades with a debconf error like: http://
[Development Fix]
The issue has been sorted in Debian and in Quantal with the recent merges. A thorough explanation of the fix is available at http://
- Breaks: 'slapd < 2.4.25-4' on libsasl2-2
- shlib dependency on 2.1.24 for libsasl2-2
Both of which have been applied to packaging in Debian and synced into Ubuntu Quantal. A no-change rebuild of openldap against the new sasl dependency is required as well.
[Stable Fix]
The two one-liners from above should be back-ported from 2.1.25.dfsg1-4 packaging and applied
to cyrus-sasl2 packaging in Precise. A no-change rebuild of openldap against the newly updated dependency is required as well.
[Test Case]
To reproduce, install slapd on a lucid installation, populate a minimal LDAP directory and do-release-upgrade. A script to populate a minimal database can be found at http://
[Regression Potential]
Minimal. Packaging changes ensure proper ordering of upgrades during dist-upgrade and do not touch original source tree.
Related branches
- James Page: Needs Fixing
- Sebastien Bacher: Needs Information
- Ubuntu branches: Pending requested
-
Diff: 13 lines (+6/-0)1 file modifieddebian/changelog (+6/-0)
Changed in openldap (Ubuntu): | |
importance: | Undecided → High |
summary: |
- does not depend on libsasl2-2 (>= 2.1.24) + slapd fails to upgrade: requires libsasl2-2 (>= 2.1.24) installed |
Changed in openldap (Ubuntu Precise): | |
status: | New → Triaged |
Changed in cyrus-sasl2 (Ubuntu Precise): | |
status: | New → Triaged |
Changed in cyrus-sasl2 (Ubuntu Quantal): | |
status: | Confirmed → Fix Released |
Changed in openldap (Ubuntu Quantal): | |
status: | Triaged → Fix Released |
description: | updated |
description: | updated |
description: | updated |
Changed in openldap (Ubuntu Precise): | |
milestone: | none → ubuntu-12.04.1 |
Changed in cyrus-sasl2 (Ubuntu Precise): | |
milestone: | none → ubuntu-12.04.1 |
Changed in openldap (Ubuntu Precise): | |
importance: | Undecided → High |
Changed in cyrus-sasl2 (Ubuntu Precise): | |
importance: | Undecided → High |
Changed in cyrus-sasl2 (Ubuntu Quantal): | |
importance: | Undecided → High |
summary: |
- slapd fails to upgrade: requires libsasl2-2 (>= 2.1.24) installed + [SRU] slapd fails to upgrade: requires libsasl2-2 (>= 2.1.24) installed |
Changed in openldap (Ubuntu Precise): | |
assignee: | nobody → Adam Gandelman (gandelman-a) |
status: | Triaged → In Progress |
no longer affects: | openldap (Ubuntu Precise) |
Status changed to 'Confirmed' because the bug affects multiple users.