slapd gives assertions for valid configuration

Bug #1048787 reported by Mattias Ellert
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openldap (Debian)
Fix Released
Unknown
openldap (Ubuntu)
Medium
Unassigned
Precise
Medium
Unassigned
Quantal
Medium
Unassigned

Bug Description

[Impact]

[Fix]

[Test Case]

[Regression Potential]

[Original Report]
The slapd version in Ubuntu precise (2.4.28-1.1ubuntu4.1) suffers from the same issue that was reported in debian BTS for the debian version 2.4.28-1.1.

When configuring the shell backend in slapd.conf the syntax is (see man slapd-shell):

add <pathname> <argument>...
bind <pathname> <argument>...
compare <pathname> <argument>...

and so on.

That is the path to the script followed by its arguments. This has worked fine in the past. However, the current version 2.4.28-1.1 of the slapd server refuses to start if any arguments are given after the path name in the configuration file, with the following assertion:

slapd: ../../../../servers/slapd/config.c:198: config_check_vals:
Assertion `c->argc == 2' failed.

For the configuration of the shell backend the assertion condition means that it is not possible to pass arguments to the script in the slapd.conf. The man pages documents that this should still be possible, and it has been working with earlier versions.

Revision history for this message
Mattias Ellert (mattias-ellert-fysast) wrote :

The patch from the debian NMU (2.4.28-1.2) fixes this issue also for Ubuntu precise.

Dave Walker (davewalker)
Changed in openldap (Ubuntu):
importance: Undecided → Medium
Changed in openldap (Ubuntu):
status: New → Triaged
Changed in openldap (Ubuntu Precise):
status: New → Triaged
importance: Undecided → Medium
Bryce Harrington (bryce)
description: updated
Changed in openldap (Debian):
status: Unknown → Fix Released
Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

This is already fixed in the version in Quantal.

Changed in openldap (Ubuntu Quantal):
status: Triaged → Fix Released
Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

ACK on the debdiff, looks good. I'll upload to precise-proposed for processing by the SRU team.

Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

Thanks!

Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Mattias, can you please distill the original report down into an easily repeatable test case so that a 3rd party can verify the fix? I'll go ahead and accept anyway, but its needed ASAP.

Changed in openldap (Ubuntu Precise):
status: Triaged → Fix Committed
tags: added: verification-needed
Revision history for this message
Clint Byrum (clint-fewbar) wrote : Please test proposed package

Hello Mattias, or anyone else affected,

Accepted openldap into precise-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/openldap/2.4.28-1.1ubuntu4.2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please change the bug tag from verification-needed to verification-done. If it does not, change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Revision history for this message
Mattias Ellert (mattias-ellert-fysast) wrote :
tags: added: verification-done
removed: verification-needed
Revision history for this message
Adam Conrad (adconrad) wrote : Update Released

The verification of this Stable Release Update has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regresssions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package openldap - 2.4.28-1.1ubuntu4.2

---------------
openldap (2.4.28-1.1ubuntu4.2) precise-proposed; urgency=low

  * Backport fix for shell backend configuration (LP: #1048787)
    - d/patches/shell-config: Use the same patch as in the Debian NMU
      used to fix the same issue in debian (BTS #662940) - patch is
      extracted from upstream git repository.
 -- Mattias Ellert <email address hidden> Mon, 10 Sep 2012 17:08:53 +0200

Changed in openldap (Ubuntu Precise):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.