Merge lp:~james-page/ubuntu/maverick/openldap/openldap-fix-658227 into lp:ubuntu/maverick/openldap

Proposed by James Page
Status: Merged
Merge reported by: Mathias Gug
Merged at revision: not available
Proposed branch: lp:~james-page/ubuntu/maverick/openldap/openldap-fix-658227
Merge into: lp:ubuntu/maverick/openldap
Diff against target: 45 lines (+15/-1)
3 files modified
debian/changelog (+7/-0)
debian/slapd.scripts-common (+1/-1)
debian/slapd.templates (+7/-0)
To merge this branch: bzr merge lp:~james-page/ubuntu/maverick/openldap/openldap-fix-658227
Reviewer Review Type Date Requested Status
Mathias Gug Pending
Review via email: mp+38398@code.launchpad.net

Description of the change

Amendments to slapd installation to trigger ldap dump and reload when upgrading to 2.4.23+

Tested by configuring an openldap install on Lucid using the server guide through to populating the ldap database with test data.

As PPA's are disabled automatically by do-release-update, the lucid instance was then updated to point at maverick sources and ppa:james-page/junk was included as an additional source (again using maverick).

slapd was then upgraded and the data within the directory verified using the following command:

 ldapsearch -xLLL -b "dc=example,dc=com" uid=john sn givenName cn

Note that I had to change slapd.templates as the slapd.scripts-common function used to dump databases depended on a missing entry.

To post a comment you must log in.
Revision history for this message
Mathias Gug (mathiaz) wrote :

Uploaded to maverick-proposed.

I've revised the package revision to follow the Ubuntu Security guidelines at https://wiki.ubuntu.com/SecurityTeam/UpdatePreparation#Update%20the%20packaging.

I've modified the package version comparison to include the revision: 2.4.23-0ubuntu3.1.

I've updated the target release to maverick-proposed since maverick is now released. All SRU will be uploaded to maverick-proposed from now on (security updates being uploaded to maverick-security directly).

I've removed the slapd.templates change: it doesn't have a direct impact on the bug and SRU should have a *minimal* working patch.

Revision history for this message
James Page (james-page) wrote :

Points 1,2 and 3 noted for future reference.

Point 4 - removal of slapd.templates change; I originally tested without making this change; however the upgrade failed on line 320 of slapd.scripts-common when db_get slapd/move_old_database was executed. Re-testing with the change to slapd.templates resulted in a successful upgrade.

Revision history for this message
Nathan Stratton Treadway (nathanst) wrote :

For what it's worth, I got the impression that the slapd/move_old_database template was incorrectly removed along with all the many templates related to the automatic creation of the default database (when that functionality was removed from the package).

http://bazaar.launchpad.net/%7Eubuntu-branches/ubuntu/maverick/openldap/maverick/revision/18/debian/slapd.templates#debian/slapd.templates

It hasn't been an issue until now because the code hasn't needed to check the slapd/move_old_database value since 2.4.14 (the last time database_format_changed would return "true").

Nathan

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2010-08-06 17:34:21 +0000
3+++ debian/changelog 2010-10-14 09:13:43 +0000
4@@ -1,3 +1,10 @@
5+openldap (2.4.23-0ubuntu4) maverick; urgency=low
6+
7+ * Fixed install/upgrade process to dump/restore databases due
8+ to uplift to libdb4.8-dev (LP: #658227)
9+
10+ -- James Page <james.page@canonical.com> Tue, 12 Oct 2010 09:02:48 +0100
11+
12 openldap (2.4.23-0ubuntu3) maverick; urgency=low
13
14 * debian/rules: move dh_apparmor before dh_installinit
15
16=== modified file 'debian/slapd.scripts-common'
17--- debian/slapd.scripts-common 2010-04-12 16:16:47 +0000
18+++ debian/slapd.scripts-common 2010-10-14 09:13:43 +0000
19@@ -46,7 +46,7 @@
20 # Return success if yes.
21 # Usage: if database_format_changed; then
22
23- if dpkg --compare-versions "$OLD_VERSION" lt-nl 2.4.14; then
24+ if dpkg --compare-versions "$OLD_VERSION" lt-nl 2.4.23; then
25 return 0
26 else
27 return 1
28
29=== modified file 'debian/slapd.templates'
30--- debian/slapd.templates 2009-08-11 14:48:56 +0000
31+++ debian/slapd.templates 2010-10-14 09:13:43 +0000
32@@ -36,6 +36,13 @@
33 Default: false
34 _Description: Do you want the database to be removed when slapd is purged?
35
36+Template: slapd/move_old_database
37+Type: booleam
38+Default: true
39+_Description: Do you want to backup the old database when slapd is upgraded?
40+ If you disable this option upgrades which change the underlying BDB
41+ format may fail.
42+
43 Template: slapd/allow_ldap_v2
44 Type: boolean
45 Default: false

Subscribers

People subscribed via source and target branches