Could not configure different config file in Portal thru SharedConf
Hi,
Trying to configure a portal with a different config file for multiple portal config in the same host, I used the following configuration for the index.pl:
my $portal = Lemonldap::NG::Portal::SharedConf->new( { configStorage => { confFile => '/path/to/conf/lemonldap-ng.ini' } } );
But the configStorage wasn't used.
I track down the issue in /usr/share/perl5/Lemonldap/NG/Portal/SharedConf.pm which never update the configStorage before loading the configuration.
Using the following patch (update the configStorage before loading the configuration), my setup is working.
--- /usr/share/perl5/Lemonldap/NG/Portal/SharedConf.pm~ 2013-04-19 10:17:11.000000000 +0200 +++ /usr/share/perl5/Lemonldap/NG/Portal/SharedConf.pm 2013-08-07 13:04:12.206330159 +0200 @@ -42,7 +42,9 @@ else { %args = @_; }
-
if(defined($args{configStorage})){
-
$self->{configStorage} = $args{configStorage};
-
} my $num = $self->__lmConf->lastCfg;
Best,
-- Florian