Set default debconf slapd/no_configuration to true

The debian packaging for openldap by default initializes the ldap DB
unless debconf tells otherwise. This patch will set the default value of
the debconf so the installation doesn't trigger this initialization and
generate garbage on the database (entries related to an admin user on
dc=nodomain).

TEST PLAN
PASS Build new ISO and install, verify slapcat for entries on DB
PASS Bootstrap with no errors
PASS Restore backup

Story: 2009303
Task: 45752
Signed-off-by: Thiago Brito <thiago.brito@windriver.com>
Change-Id: I60786a6b9f46619b328cf00d6bdbdf0cc95c9c35
This commit is contained in:
Thiago Brito 2022-07-07 20:58:05 -03:00 committed by Thiago Paiva Brito
parent 582fc6874f
commit 7b283931a0
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,30 @@
From 7e1514545f00f90c4b20a20f8cc5eee824804a32 Mon Sep 17 00:00:00 2001
From: Thiago Brito <thiago.brito@windriver.com>
Date: Thu, 7 Jul 2022 20:53:58 -0300
Subject: [PATCH] Chg default debconf slapd/no_configuration to true
This is needed so we let StarlingX initialize the LDAP database.
Signed-off-by: Thiago Brito <thiago.brito@windriver.com>
---
debian/slapd.templates | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/debian/slapd.templates b/debian/slapd.templates
index 444613c..31850c6 100644
--- a/debian/slapd.templates
+++ b/debian/slapd.templates
@@ -1,8 +1,8 @@
Template: slapd/no_configuration
Type: boolean
-Default: false
+Default: true
_Description: Omit OpenLDAP server configuration?
- If you enable this option, no initial configuration or database will be
+ If you disable this option, an initial configuration or database will be
created for you.
Template: slapd/dump_database
--
2.25.1

View File

@ -1,3 +1,4 @@
debian-disable-unit-tests.patch
0001-Change-pid-file-and-args-file-location.patch
0002-Support-building-ppolicy-check-password-library.patch
0003-Chg-default-debconf-slapd-no_configuration-to-true.patch