[Pkg-openldap-devel] Recommendation for ldbm to bdb

Matthijs Mohlmann matthijs@cacholong.nl
Sun, 15 May 2005 13:28:10 +0200


This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig57134B2E8423462F209B7BB1
Content-Type: multipart/mixed;
 boundary="------------040200070800010309060709"

This is a multi-part message in MIME format.
--------------040200070800010309060709
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Hi,

Here the patch (with svn diff) that recommends bdb.

What the patch does:
if the user has ldbm in the current configuration
ask for switching to bdb (see configure_dumping).

added extra function: configure_ldbm_to_bdb (sed expression to change
the backend type)

database_format_changed edited to check if the user want to switch to bdb

And in the slapd.postinst:
if database_format_changed; then
       # During upgrading we have to load the old data
       move_incompatible_databases_away
       configure_ldbm_to_bdb
       load_databases
fi

Added a changelog version and i did run debconf-updatepo.

Please check if my question is ok, i'm not pretty sure about that.

This patch can fix: #304735

Regards,

Matthijs Mohlmann

--------------040200070800010309060709
Content-Type: text/x-patch;
 name="ldbm_bdb_recommendation.svn.patch"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline;
 filename="ldbm_bdb_recommendation.svn.patch"

Index: debian/po/templates.pot
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- debian/po/templates.pot	(revision 554)
+++ debian/po/templates.pot	(working copy)
@@ -16,7 +16,7 @@
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2005-04-14 12:10+0200\n"
+"POT-Creation-Date: 2005-05-14 13:27+0200\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -352,15 +352,39 @@
 "on slaves. You should make sure to fix your slapd.conf configuration fi=
le."
 msgstr ""
=20
+#. Type: boolean
+#. Description
+#: ../slapd.templates:184
+msgid "Changing database backend."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../slapd.templates:184
+msgid ""
+"It is highly recommended to use the BDB backend. This is also the "
+"recommended choice of the OpenLDAP developers. The LDBM backend has pro=
ven "
+"to be more reliable in earlier versions of OpenLDAP. (Versions 2.1.30 a=
nd "
+"below)"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../slapd.templates:184
+msgid ""
+"When using the BDB backend make sure you configure BDB properly. For  "=

+"information to do so, see: http://www.openldap.org/faq/data/cache/893.h=
tml."
+msgstr ""
+
 #. Type: select
 #. Description
-#: ../slapd.templates:185
+#: ../slapd.templates:196
 msgid "Database backend to use:"
 msgstr ""
=20
 #. Type: select
 #. Description
-#: ../slapd.templates:185
+#: ../slapd.templates:196
 msgid ""
 "While the BDB backend is the recommended choice of the OpenLDAP develop=
ers, "
 "the LDBM backend has proven to be more reliable for some Debian users, =
"
@@ -371,7 +395,7 @@
=20
 #. Type: select
 #. Description
-#: ../slapd.templates:185
+#: ../slapd.templates:196
 msgid ""
 "HDB is the next generation of BDB which might replace it sometime in  t=
he "
 "future. There are some problems still in the HDB code of the 2.2 series=
 of "
@@ -380,7 +404,7 @@
=20
 #. Type: select
 #. Description
-#: ../slapd.templates:185
+#: ../slapd.templates:196
 msgid ""
 "The BDB backend (back-bdb) and LDBM backend (back-ldbm) are comparable =
in "
 "purpose and back-bdb evolved from experience gained from back-ldbm, but=
 the "
Index: debian/po/pt_BR.po
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- debian/po/pt_BR.po	(revision 554)
+++ debian/po/pt_BR.po	(working copy)
@@ -15,7 +15,7 @@
 msgstr ""
 "Project-Id-Version: openldap2_2.1.17-1\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2005-04-14 12:10+0200\n"
+"POT-Creation-Date: 2005-05-14 13:27+0200\n"
 "PO-Revision-Date: 2003-04-20 21:41-0300\n"
 "Last-Translator: Andr=E9 Lu=EDs Lopes <andrelop@ig.com.br>\n"
 "Language-Team: Debian-BR Project <debian-l10n-portuguese@lists.debian.o=
rg>\n"
@@ -388,15 +388,39 @@
 "on slaves. You should make sure to fix your slapd.conf configuration fi=
le."
 msgstr ""
=20
+#. Type: boolean
+#. Description
+#: ../slapd.templates:184
+msgid "Changing database backend."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../slapd.templates:184
+msgid ""
+"It is highly recommended to use the BDB backend. This is also the "
+"recommended choice of the OpenLDAP developers. The LDBM backend has pro=
ven "
+"to be more reliable in earlier versions of OpenLDAP. (Versions 2.1.30 a=
nd "
+"below)"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../slapd.templates:184
+msgid ""
+"When using the BDB backend make sure you configure BDB properly. For  "=

+"information to do so, see: http://www.openldap.org/faq/data/cache/893.h=
tml."
+msgstr ""
+
 #. Type: select
 #. Description
-#: ../slapd.templates:185
+#: ../slapd.templates:196
 msgid "Database backend to use:"
 msgstr ""
=20
 #. Type: select
 #. Description
-#: ../slapd.templates:185
+#: ../slapd.templates:196
 msgid ""
 "While the BDB backend is the recommended choice of the OpenLDAP develop=
ers, "
 "the LDBM backend has proven to be more reliable for some Debian users, =
"
@@ -407,7 +431,7 @@
=20
 #. Type: select
 #. Description
-#: ../slapd.templates:185
+#: ../slapd.templates:196
 msgid ""
 "HDB is the next generation of BDB which might replace it sometime in  t=
he "
 "future. There are some problems still in the HDB code of the 2.2 series=
 of "
@@ -416,7 +440,7 @@
=20
 #. Type: select
 #. Description
-#: ../slapd.templates:185
+#: ../slapd.templates:196
 msgid ""
 "The BDB backend (back-bdb) and LDBM backend (back-ldbm) are comparable =
in "
 "purpose and back-bdb evolved from experience gained from back-ldbm, but=
 the "
Index: debian/po/fr.po
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- debian/po/fr.po	(revision 554)
+++ debian/po/fr.po	(working copy)
@@ -17,7 +17,7 @@
 msgstr ""
 "Project-Id-Version: openldap2\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2005-04-14 12:10+0200\n"
+"POT-Creation-Date: 2005-05-14 13:27+0200\n"
 "PO-Revision-Date: 2005-04-25 08:01+0200\n"
 "Last-Translator: Christian Perrier <bubulle@debian.org>\n"
 "Language-Team: French <debian-l10n-french@lists.debian.org>\n"
@@ -450,15 +450,40 @@
 "serveurs esclaves. Veuillez faire le n=E9cessaire pour corriger votre f=
ichier "
 "de configuration."
=20
+#. Type: boolean
+#. Description
+#: ../slapd.templates:184
+#, fuzzy
+msgid "Changing database backend."
+msgstr "Module de base de donn=E9es =E0 utiliser=A0:"
+
+#. Type: boolean
+#. Description
+#: ../slapd.templates:184
+msgid ""
+"It is highly recommended to use the BDB backend. This is also the "
+"recommended choice of the OpenLDAP developers. The LDBM backend has pro=
ven "
+"to be more reliable in earlier versions of OpenLDAP. (Versions 2.1.30 a=
nd "
+"below)"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../slapd.templates:184
+msgid ""
+"When using the BDB backend make sure you configure BDB properly. For  "=

+"information to do so, see: http://www.openldap.org/faq/data/cache/893.h=
tml."
+msgstr ""
+
 #. Type: select
 #. Description
-#: ../slapd.templates:185
+#: ../slapd.templates:196
 msgid "Database backend to use:"
 msgstr "Module de base de donn=E9es =E0 utiliser=A0:"
=20
 #. Type: select
 #. Description
-#: ../slapd.templates:185
+#: ../slapd.templates:196
 msgid ""
 "While the BDB backend is the recommended choice of the OpenLDAP develop=
ers, "
 "the LDBM backend has proven to be more reliable for some Debian users, =
"
@@ -476,7 +501,7 @@
=20
 #. Type: select
 #. Description
-#: ../slapd.templates:185
+#: ../slapd.templates:196
 msgid ""
 "HDB is the next generation of BDB which might replace it sometime in  t=
he "
 "future. There are some problems still in the HDB code of the 2.2 series=
 of "
@@ -488,7 +513,7 @@
=20
 #. Type: select
 #. Description
-#: ../slapd.templates:185
+#: ../slapd.templates:196
 msgid ""
 "The BDB backend (back-bdb) and LDBM backend (back-ldbm) are comparable =
in "
 "purpose and back-bdb evolved from experience gained from back-ldbm, but=
 the "
Index: debian/po/de.po
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- debian/po/de.po	(revision 554)
+++ debian/po/de.po	(working copy)
@@ -16,7 +16,7 @@
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2005-04-14 12:10+0200\n"
+"POT-Creation-Date: 2005-05-14 13:27+0200\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -367,15 +367,39 @@
 "on slaves. You should make sure to fix your slapd.conf configuration fi=
le."
 msgstr ""
=20
+#. Type: boolean
+#. Description
+#: ../slapd.templates:184
+msgid "Changing database backend."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../slapd.templates:184
+msgid ""
+"It is highly recommended to use the BDB backend. This is also the "
+"recommended choice of the OpenLDAP developers. The LDBM backend has pro=
ven "
+"to be more reliable in earlier versions of OpenLDAP. (Versions 2.1.30 a=
nd "
+"below)"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../slapd.templates:184
+msgid ""
+"When using the BDB backend make sure you configure BDB properly. For  "=

+"information to do so, see: http://www.openldap.org/faq/data/cache/893.h=
tml."
+msgstr ""
+
 #. Type: select
 #. Description
-#: ../slapd.templates:185
+#: ../slapd.templates:196
 msgid "Database backend to use:"
 msgstr ""
=20
 #. Type: select
 #. Description
-#: ../slapd.templates:185
+#: ../slapd.templates:196
 msgid ""
 "While the BDB backend is the recommended choice of the OpenLDAP develop=
ers, "
 "the LDBM backend has proven to be more reliable for some Debian users, =
"
@@ -386,7 +410,7 @@
=20
 #. Type: select
 #. Description
-#: ../slapd.templates:185
+#: ../slapd.templates:196
 msgid ""
 "HDB is the next generation of BDB which might replace it sometime in  t=
he "
 "future. There are some problems still in the HDB code of the 2.2 series=
 of "
@@ -395,7 +419,7 @@
=20
 #. Type: select
 #. Description
-#: ../slapd.templates:185
+#: ../slapd.templates:196
 msgid ""
 "The BDB backend (back-bdb) and LDBM backend (back-ldbm) are comparable =
in "
 "purpose and back-bdb evolved from experience gained from back-ldbm, but=
 the "
Index: debian/po/nl.po
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- debian/po/nl.po	(revision 554)
+++ debian/po/nl.po	(working copy)
@@ -15,7 +15,7 @@
 msgstr ""
 "Project-Id-Version: openldap2\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2005-04-14 12:10+0200\n"
+"POT-Creation-Date: 2005-05-14 13:27+0200\n"
 "PO-Revision-Date: 2003-09-27 12:45+0100\n"
 "Last-Translator: Bart Cornelis <cobaco@linux.be>\n"
 "Language-Team: debian-l10n-dutch <debian-l10n-dutch@lists.debian.org>\n=
"
@@ -385,15 +385,39 @@
 "on slaves. You should make sure to fix your slapd.conf configuration fi=
le."
 msgstr ""
=20
+#. Type: boolean
+#. Description
+#: ../slapd.templates:184
+msgid "Changing database backend."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../slapd.templates:184
+msgid ""
+"It is highly recommended to use the BDB backend. This is also the "
+"recommended choice of the OpenLDAP developers. The LDBM backend has pro=
ven "
+"to be more reliable in earlier versions of OpenLDAP. (Versions 2.1.30 a=
nd "
+"below)"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../slapd.templates:184
+msgid ""
+"When using the BDB backend make sure you configure BDB properly. For  "=

+"information to do so, see: http://www.openldap.org/faq/data/cache/893.h=
tml."
+msgstr ""
+
 #. Type: select
 #. Description
-#: ../slapd.templates:185
+#: ../slapd.templates:196
 msgid "Database backend to use:"
 msgstr ""
=20
 #. Type: select
 #. Description
-#: ../slapd.templates:185
+#: ../slapd.templates:196
 msgid ""
 "While the BDB backend is the recommended choice of the OpenLDAP develop=
ers, "
 "the LDBM backend has proven to be more reliable for some Debian users, =
"
@@ -404,7 +428,7 @@
=20
 #. Type: select
 #. Description
-#: ../slapd.templates:185
+#: ../slapd.templates:196
 msgid ""
 "HDB is the next generation of BDB which might replace it sometime in  t=
he "
 "future. There are some problems still in the HDB code of the 2.2 series=
 of "
@@ -413,7 +437,7 @@
=20
 #. Type: select
 #. Description
-#: ../slapd.templates:185
+#: ../slapd.templates:196
 msgid ""
 "The BDB backend (back-bdb) and LDBM backend (back-ldbm) are comparable =
in "
 "purpose and back-bdb evolved from experience gained from back-ldbm, but=
 the "
Index: debian/po/ja.po
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- debian/po/ja.po	(revision 554)
+++ debian/po/ja.po	(working copy)
@@ -15,7 +15,7 @@
 msgstr ""
 "Project-Id-Version: openldap2.2\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2005-04-14 12:10+0200\n"
+"POT-Creation-Date: 2005-05-14 13:27+0200\n"
 "PO-Revision-Date: 2005-04-25 12:37+0900\n"
 "Last-Translator: Kenshi Muto <kmuto@debian.org>\n"
 "Language-Team: Japanese <debian-japanese@lists.debian.org>\n"
@@ -431,15 +431,40 @@
 "=A5=D0=A1=BC=A5=B8=A5=E7=A5=F3 2.1.23 =A4=AB=A4=E9=A1=A2slapd =A4=CF up=
dateref =A5=AA=A5=D7=A5=B7=A5=E7=A5=F3=A4=F2=A5=B9=A5=EC=A1=BC=A5=D6=A4=CB=
=C0=DF=C4=EA=A4=B9=A4=EB=C9=AC=CD=D7"
 "=A4=AC=A4=A2=A4=EA=A4=DE=A4=B9=A1=A3=A4=A2=A4=CA=A4=BF=A4=CE slapd.conf=
 =C0=DF=C4=EA=A5=D5=A5=A1=A5=A4=A5=EB=A4=CE=BD=A4=C0=B5=A4=F2=B3=CE=C7=A7=
=A4=B7=A4=C6=A4=AF=A4=C0=A4=B5=A4=A4=A1=A3"
=20
+#. Type: boolean
+#. Description
+#: ../slapd.templates:184
+#, fuzzy
+msgid "Changing database backend."
+msgstr "=CD=F8=CD=D1=A4=B9=A4=EB=A5=C7=A1=BC=A5=BF=A5=D9=A1=BC=A5=B9=A5=D0=
=A5=C3=A5=AF=A5=A8=A5=F3=A5=C9:"
+
+#. Type: boolean
+#. Description
+#: ../slapd.templates:184
+msgid ""
+"It is highly recommended to use the BDB backend. This is also the "
+"recommended choice of the OpenLDAP developers. The LDBM backend has pro=
ven "
+"to be more reliable in earlier versions of OpenLDAP. (Versions 2.1.30 a=
nd "
+"below)"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../slapd.templates:184
+msgid ""
+"When using the BDB backend make sure you configure BDB properly. For  "=

+"information to do so, see: http://www.openldap.org/faq/data/cache/893.h=
tml."
+msgstr ""
+
 #. Type: select
 #. Description
-#: ../slapd.templates:185
+#: ../slapd.templates:196
 msgid "Database backend to use:"
 msgstr "=CD=F8=CD=D1=A4=B9=A4=EB=A5=C7=A1=BC=A5=BF=A5=D9=A1=BC=A5=B9=A5=D0=
=A5=C3=A5=AF=A5=A8=A5=F3=A5=C9:"
=20
 #. Type: select
 #. Description
-#: ../slapd.templates:185
+#: ../slapd.templates:196
 msgid ""
 "While the BDB backend is the recommended choice of the OpenLDAP develop=
ers, "
 "the LDBM backend has proven to be more reliable for some Debian users, =
"
@@ -455,7 +480,7 @@
=20
 #. Type: select
 #. Description
-#: ../slapd.templates:185
+#: ../slapd.templates:196
 msgid ""
 "HDB is the next generation of BDB which might replace it sometime in  t=
he "
 "future. There are some problems still in the HDB code of the 2.2 series=
 of "
@@ -467,7 +492,7 @@
=20
 #. Type: select
 #. Description
-#: ../slapd.templates:185
+#: ../slapd.templates:196
 msgid ""
 "The BDB backend (back-bdb) and LDBM backend (back-ldbm) are comparable =
in "
 "purpose and back-bdb evolved from experience gained from back-ldbm, but=
 the "
Index: debian/slapd.scripts-common
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- debian/slapd.scripts-common	(revision 554)
+++ debian/slapd.scripts-common	(working copy)
@@ -28,6 +28,16 @@
 		db_input medium slapd/dump_database_destdir || true
 		db_go || true
=20
+		# Backend recommendation. LDBM -> BDB
+		if grep '^moduleload.*back_ldbm' $SLAPD_CONF 2>&1 >/dev/null ||
+					grep '^database.*ldbm' $SLAPD_CONF 2>&1 >/dev/null ||
+					grep '^backend.*ldbm' $SLAPD_CONF 2>&1 >/dev/null; then
+			db_input medium slapd/backend_recommendation || true
+			db_go || true
+		else
+			db_set slapd/backend_recommendation false
+		fi
+
 		# If the user entered the empty value, go back to the default
 		db_get slapd/dump_database_destdir=20
 		if [ "$RET" =3D "" ]; then
@@ -66,7 +76,12 @@
 # Return success if yes.
 # Usage: if database_format_changed; then
=20
-	dpkg --compare-versions "$OLD_VERSION" lt-nl "2.2.23" || return 1
+	db_get slapd/backend_recommendation
+	if dpkg --compare-versions "$OLD_VERSION" lt-nl "2.2.23" || [ "$RET" =3D=
 "true" ]; then
+		return 0
+	else
+		return 1
+	fi
 }
=20
 # }}}
@@ -558,6 +573,21 @@
 	echo "done." >&2
 }=20
 # }}}
+configure_ldbm_to_bdb() {           # {{{
+	# Change all ldbm directives to bdb
+	if [ -e "$SLAPD_CONF" ]; then
+		db_get slapd/backend_recommendation
+		if [ "$RET" =3D "true" ]; then
+			# Change backend to bdb:
+			# - moduleload   back_ldbm -> moduleload back_bdb
+			# - backend      ldbm      -> backend bdb
+			# - database     ldbm      -> database bdb
+			sed -i -e 's/^moduleload.*ldbm/moduleload\ back_bdb/' \
+				-e 's/^database.*ldbm/database\ bdb/' \
+				-e 's/^backend.*ldbm/backend\ bdb/' $SLAPD_CONF
+		fi
+	fi
+} # }}}
 autoconfigure_modules() {						# {{{
 # On upgrades from pre-2.1 we might have to update the configuration=20
 # file for loading the backend modules. This function tries to figure ou=
t
Index: debian/slapd.postinst
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- debian/slapd.postinst	(revision 554)
+++ debian/slapd.postinst	(working copy)
@@ -43,6 +43,7 @@
 if database_format_changed; then
 	# During upgrading we have to load the old data
 	move_incompatible_databases_away
+	configure_ldbm_to_bdb
 	load_databases
 fi
=20
Index: debian/changelog
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- debian/changelog	(revision 554)
+++ debian/changelog	(working copy)
@@ -3,9 +3,9 @@
   Torsten Landschoff <torsten@debian.org>:
   * debian/po/ja.po: Merge updates from Kenshi Muto (closes: #303505).
   * debian/po/fr.po: Merge updates from Christian Perrier (closes: #3062=
29).
-  * debian/slapd.scripts-common: If the user enters the empty value for =

+  * debian/slapd.scripts-common: If the user enters the empty value for
     the database dumping directory use the default value. Seems like the=

-    readline interface does not care about the default value=20
+    readline interface does not care about the default value
     (closes: #308234).
=20
   Steve Langasek <vorlon@debian.org>:
@@ -15,8 +15,11 @@
     two versions of this library around is more trouble than it's worth,=

     and can cause glorious segfaults down the line
=20
- --=20
+  Matthijs Mohlmann <matthijs@cacholong.nl>:
+  * Added bdb recommendation when user is running on the ldbm backend.
=20
+ -- Matthijs Mohlmann <matthijs@monster>  Sat, 14 May 2005 10:56:00 +020=
0
+
 openldap2.2 (2.2.23-5) unstable; urgency=3Dlow
=20
   Torsten Landschoff <torsten@debian.org>:
Index: debian/slapd.templates
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- debian/slapd.templates	(revision 554)
+++ debian/slapd.templates	(working copy)
@@ -178,6 +178,17 @@
  option to be set on slaves. You should make sure to fix
  your slapd.conf configuration file.
=20
+Template: slapd/backend_recommendation
+Type: boolean
+Default: true
+_Description: Changing database backend.
+ It is highly recommended to use the BDB backend. This is also the recom=
mended
+ choice of the OpenLDAP developers. The LDBM backend has proven to be mo=
re
+ reliable in earlier versions of OpenLDAP. (Versions 2.1.30 and below)
+ .
+ When using the BDB backend make sure you configure BDB properly. For=20
+ information to do so, see: http://www.openldap.org/faq/data/cache/893.h=
tml.
+
 Template: slapd/backend
 Type: select
 Choices: BDB, HDB, LDBM

--------------040200070800010309060709--

--------------enig57134B2E8423462F209B7BB1
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFChzJL2n1ROIkXqbARArHDAKCsxUMljpYMJ/RMwOpx4AcNEV+I9ACgp8ic
6RhumYQVHrH39cYqmZWrpnM=
=6r+N
-----END PGP SIGNATURE-----

--------------enig57134B2E8423462F209B7BB1--