Be tolerant with whitespaces in ini file
Concerned version
Version: 2.0.0 beta1
Platform: Debian / Nginx 1.14
Summary
When converting my config from files to pgsql, I can't.
Logs
root@llng1-dev:~# /usr/share/lemonldap-ng/bin/convertConfig --current=/etc/lemonldap-ng/old.ini --new=/etc/lemonldap-ng/lemonldap-ng.ini
Undefined subroutine &Lemonldap::NG::Common::Conf::Backends::CDBI ::prereq called at /usr/share/perl5/Lemonldap/NG/Common/Conf.pm line 409.
cat /etc/lemonldap-ng/old.ini
[all]
[configuration]
type = File
dirName = /var/lib/lemonldap-ng/conf
cat /etc/lemonldap-ng/lemonldap-ng.ini
type = CDBI
dbiChain = DBI:Pg:database=lemonldap;host=localhost
dbiUser = lemonldap
dbiPassword = password
dbiTable = lmconfig
;type=File
;dirName = /var/lib/lemonldap-ng/conf
psql is ok :
root@llng1-dev:~# psql -h localhost -d lemonldap -U lemonldap -W
Mot de passe pour l'utilisateur lemonldap :
psql (9.6.10)
Connexion SSL (protocole : TLSv1.2, chiffrement : ECDHE-RSA-AES256-GCM-SHA384, bits : 256, compression : désactivé)
Saisissez « help » pour l'aide.
lemonldap=> \q
Backends used
Files/PGSQL
Thanks