Display error if SAML service is enabled without private and public keys signature
Concerned version
Version: %2.0.4
Platform: (Nginx/Apache/Node.js)
Summary
Return error during conf saving to avoid a black screen with 500 internal server error
[error] SAML private and public key not found in configuration
[error]
[error] Underlying object can't load conf (Lemonldap::NG::Portal::Main->reloadConf)
Use of uninitialized value in string eq at /home/maudoux/lemonldap-ng/lemonldap-ng-handler/blib/lib/Lemonldap/NG/Handler/Lib/PSGI.pm line 23.
[error] Unable to protect this server (Lemonldap::NG::Common::Conf::Backends::File loaded.
Get remote configuration (localStorage unavailable).
Get configuration 2.)
[warn] [anonymous] Unable to protect this server (Lemonldap::NG::Common::Conf::Backends::File loaded.
Get remote configuration (localStorage unavailable).
Get configuration 2.)
[error] Error 500: Unable to protect this server (Lemonldap::NG::Common::Conf::Backends::File loaded.
Get remote configuration (localStorage unavailable).
Get configuration 2.)
auth.example.com:80 127.0.0.1 - - [01/May/2019:21:35:20 +0200] "GET /?cancel=1 HTTP/1.1" 500 2425