Import crypto functions in jail (fix: #1187)

environments/ppa-mbqj77/deployments/1
Xavier Guimard 8 years ago
parent e7266121bb
commit 553e6e09e1
  1. 3
      lemonldap-ng-handler/lib/Lemonldap/NG/Handler/Main/Jail.pm
  2. 2
      lemonldap-ng-handler/lib/Lemonldap/NG/Handler/Main/Reload.pm

@ -77,6 +77,9 @@ sub build_jail {
$self->jail->share_from( 'MIME::Base64', ['&encode_base64'] );
$self->jail->share_from( 'Lemonldap::NG::Handler::Main', ['$_v'] );
# Initialize cryptographic functions to be able to use them in jail.
eval { token('a') };
return $self->jail;
}

@ -149,7 +149,7 @@ sub configReload {
"Loading configuration $conf->{cfgNum} for process $$");
foreach my $sub (
qw( jailInit defaultValuesInit portalInit locationRulesInit
qw( defaultValuesInit jailInit portalInit locationRulesInit
sessionStorageInit headersInit postUrlInit aliasInit )
)
{

Loading…
Cancel
Save