Warn if key is not defined

This commit is contained in:
Xavier Guimard 2010-09-18 16:11:13 +00:00
parent 416fa64a0d
commit b529a4c794

View File

@ -153,6 +153,8 @@ sub getConf {
delete $r->{reVHosts};
}
else {
print STDERR 'Warning: key is not defined, set it in the manager !'
unless ( $r->{key} );
eval {
$r->{cipher} = Lemonldap::NG::Common::Crypto->new(
$r->{key} || 'lemonldap-ng-key',