This commit adds two upgrade scripts for different stages:
start: backs up data to /opt/platform/config/21.12/ldap/ldap.db
activate: imports data from /opt/platform/config/21.12/ldap/ldap.db
From centos to debian there are many changes to the directory
structure and configuration for slapd. The above steps are necessary
to ensure data is properly restored in the new version.
Story: 2009303
Task: 47241
Test Plan:
PASS: Run AIO-DX upgrade from a Centos system to a Debian system and
verify ldap commands such as ldapfinger and ldapsearch
are returning proper data
PASS: Create new openldap user in Centos system, do the upgrade to
Debian system and verify that such user is kept and usable after
the upgrade.
PASS: After upgrade do ldapfinger and 'getent passwd <user>' for the
default ldap users of operator and admin and verify proper data
is returned
Change-Id: Ibb12d6f639115d4a31d6f4c49399525d5148481a
Signed-off-by: Rei Oliveira <Reinildes.JoseMateusOliveira@windriver.com>