|
|
|
@ -30,6 +30,7 @@ my $managerConstants = "lib/Lemonldap/NG/Manager/Constants.pm"; |
|
|
|
|
my $defaultValuesFile = |
|
|
|
|
"../lemonldap-ng-common/lib/Lemonldap/NG/Common/Conf/DefaultValues.pm"; |
|
|
|
|
my @simpleHashKeys; |
|
|
|
|
my @sessionTypes; |
|
|
|
|
my @cnodesKeys; |
|
|
|
|
my %cnodesRe; |
|
|
|
|
|
|
|
|
@ -128,12 +129,13 @@ $tmp =~ s/:\s*"(\d+)"\s*(["\}])/:$1$2/sg; |
|
|
|
|
print F $tmp; |
|
|
|
|
close F; |
|
|
|
|
$tmp = undef; |
|
|
|
|
my $sessionTypes = join( "', '", @sessionTypes ); |
|
|
|
|
|
|
|
|
|
open F, ">$managerConstants" or die($!); |
|
|
|
|
my $exportedVars = |
|
|
|
|
'$' |
|
|
|
|
. join( 'Keys $', 'simpleHash', 'specialNode', sort keys %cnodesRe ) |
|
|
|
|
. 'Keys $specialNodeHash'; |
|
|
|
|
. 'Keys $specialNodeHash @sessionTypes'; |
|
|
|
|
print F <<EOF; |
|
|
|
|
# This file is generated by $0. Don't modify it by hand |
|
|
|
|
package Lemonldap::NG::Manager::Constants; |
|
|
|
@ -156,6 +158,8 @@ our \$specialNodeHash = { |
|
|
|
|
oidcRPMetaDataNodes => [qw(oidcRPMetaDataOptions oidcRPMetaDataExportedVars)], |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
our \@sessionTypes = ( '$sessionTypes' ); |
|
|
|
|
|
|
|
|
|
EOF |
|
|
|
|
|
|
|
|
|
my $ra = Regexp::Assemble->new; |
|
|
|
@ -199,7 +203,7 @@ eval { |
|
|
|
|
destination => \$dst |
|
|
|
|
); |
|
|
|
|
}; |
|
|
|
|
$dst = $defaultAttr if($@); |
|
|
|
|
$dst = $defaultAttr if ($@); |
|
|
|
|
|
|
|
|
|
open( F, "> $defaultValuesFile" ) or die($!); |
|
|
|
|
print F $dst; |
|
|
|
@ -269,6 +273,7 @@ sub scanTree { |
|
|
|
|
if ( $leaf =~ s/^\*// ) { |
|
|
|
|
push @angularScopeVars, [ $leaf, "$path._nodes[$ord]" ]; |
|
|
|
|
} |
|
|
|
|
push @sessionTypes, $1 if ( $leaf =~ /^(.*)(?<!notification)StorageOptions$/ ); |
|
|
|
|
my $attr = $attributes->{$leaf} or die("Missing attribute $leaf"); |
|
|
|
|
$jleaf = { id => "$prefix$leaf", title => $leaf }; |
|
|
|
|
unless ( $attr->{type} ) { |
|
|
|
|