[SRU] slapd package cannot be installed when using bash as the default shell
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openldap (Ubuntu) |
Fix Released
|
Low
|
Mathias Gug | ||
Intrepid |
Fix Released
|
Low
|
Mathias Gug |
Bug Description
In Intrepid I'd like to install slapd package and the preinst script gives an error message:
/var/lib/
dpkg: error processing /var/cache/
subprocess pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/
SRU PROCESS
=========
IMPACT
---------
If a system is using /bin/bash as the default sh shell, slapd config script fails during an upgrade from hardy to intrepid.
This is due to the usage of a local statement outside of a function. dash doesn't fail while bash fails.
RESOLUTION
----------------
Remove the local statement in the slapd config script.
PATCH
--------
diff -u openldap-
--- openldap-
+++ openldap-
@@ -185,7 +185,6 @@
- local pass1 pass2
TESTCASE
-------------
Install slapd in hardy.
Change the default shell to bash:
$ sudo ln -sf /bin/bash /bin/sh
Do an upgrade - enter a new password for the cn=config backend.
Expected Result:
The upgrade completes and upon reboot slapd is running with a cn=config backend:
$ ldapsearch -b "cn=config" -D "cn=admin,
The command should return a long list of ldap attributes in ldif format.
Potential regression
-------
None.
Changed in openldap: | |
assignee: | nobody → mathiaz |
importance: | Undecided → Low |
status: | New → In Progress |
description: | updated |
Changed in openldap: | |
assignee: | nobody → mathiaz |
status: | Triaged → Fix Committed |
Happens when installing/ upgrading the slapd package.