On 8/9/21 3:28 PM, Jan Engelhardt wrote:
On Monday 2021-08-09 14:43, Michael Ströder wrote:
If users are still running back-hdb or even the ancient back-bdb they won't be able upgrade because in your build these deprecated back-ends are disabled. They won't even be able to slapcat their databases.
Personally I think those users should have migrated their DBs to back-mdb years ago. But what's the position of the openSUSE project on this?
I could propose something like
%pretrans if grep -Pq 'database\s+hdb' /etc/openldap/slapd.conf 2>/dev/null; then echo "slapd.conf: You should convert from hdb to mdb first before starting the upgrade." exit 1 fi
Detail: The regex pattern should also cover back-bdb. Slightly harder: The installation could use back-config and user root does not have LDAP search privileges on cn=config (or whatever the config is). So the %pretrans task would also have to find out which file directory is used to store back-config's LDIF files and search therein. Ciao, Michael.