convertConfig does not work when target backend is empty
Concerned version
Version: 2.0.12
Summary
- Try to change config backend according to https://lemonldap-ng.org/documentation/latest/changeconfbackend.html
- Conversion silently fails if the target backend does not already contain data
Logs
Converting from File to LDAP
Conf 1 stored
Conf 2 stored
Conf 3 stored
Conf 4 stored
Conf 5 stored
Conf 6 stored
Conf 7 stored
Conf 8 stored
Conf 9 stored
But nothing is written to LDAP backend
This is a regression from d7cbee5d
Possible fixes
$self->lastCfg should not be fatal