Warn if key is not defined
This commit is contained in:
parent
416fa64a0d
commit
b529a4c794
|
@ -153,6 +153,8 @@ sub getConf {
|
||||||
delete $r->{reVHosts};
|
delete $r->{reVHosts};
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
print STDERR 'Warning: key is not defined, set it in the manager !'
|
||||||
|
unless ( $r->{key} );
|
||||||
eval {
|
eval {
|
||||||
$r->{cipher} = Lemonldap::NG::Common::Crypto->new(
|
$r->{cipher} = Lemonldap::NG::Common::Crypto->new(
|
||||||
$r->{key} || 'lemonldap-ng-key',
|
$r->{key} || 'lemonldap-ng-key',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user