Commit 2954ea2a authored by Christophe Maudoux's avatar Christophe Maudoux 🐛

Disable compactConf by default & Update unit tests (#2046)

parent cabdec60
...@@ -4,12 +4,12 @@ use strict; ...@@ -4,12 +4,12 @@ use strict;
use Mouse; use Mouse;
use Lemonldap::NG::Common::Conf::ReConstants; use Lemonldap::NG::Common::Conf::ReConstants;
our $VERSION = '2.0.7'; our $VERSION = '2.0.8';
sub compactConf { sub compactConf {
my ( $self, $conf ) = @_; my ( $self, $conf ) = @_;
return $conf if ( $conf->{'dontCompactConf'} ); return $conf unless ( $conf->{'compactConf'} );
# Remove unused auth parameters # Remove unused auth parameters
my %keep; my %keep;
......
...@@ -5,7 +5,7 @@ use strict; ...@@ -5,7 +5,7 @@ use strict;
use Exporter 'import'; use Exporter 'import';
use base qw(Exporter); use base qw(Exporter);
our $VERSION = '2.0.7'; our $VERSION = '2.0.8';
# CONSTANTS # CONSTANTS
...@@ -24,7 +24,7 @@ use constant MANAGERSECTION => "manager"; ...@@ -24,7 +24,7 @@ use constant MANAGERSECTION => "manager";
use constant SESSIONSEXPLORERSECTION => "sessionsExplorer"; use constant SESSIONSEXPLORERSECTION => "sessionsExplorer";
use constant APPLYSECTION => "apply"; use constant APPLYSECTION => "apply";
our $hashParameters = qr/^(?:(?:l(?:o(?:ca(?:lSessionStorageOption|tionRule)|goutService)|dapExportedVar|wp(?:Ssl)?Opt)|(?:(?:d(?:emo|bi)|facebook|webID)ExportedVa|exported(?:Heade|Va)|issuerDBGetParamete)r|re(?:moteGlobalStorageOption|st2f(?:Verify|Init)Arg|loadUrl)|g(?:r(?:antSessionRule|oup)|lobalStorageOption)|n(?:otificationStorageOption|ginxCustomHandler)|macro)s|o(?:idc(?:S(?:ervice(?:DynamicRegistrationEx(?:portedVar|traClaim)s|MetaDataAuthnContext)|torageOptions)|RPMetaData(?:(?:Option(?:sExtraClaim)?|ExportedVar|Macro)s|Node)|OPMetaData(?:(?:ExportedVar|Option)s|J(?:SON|WKS)|Node))|penIdExportedVars)|s(?:aml(?:S(?:PMetaData(?:(?:ExportedAttribute|Option|Macro)s|Node|XML)|torageOptions)|IDPMetaData(?:(?:ExportedAttribute|Option)s|Node|XML))|essionDataToRemember|laveExportedVars|fExtra)|c(?:as(?:A(?:ppMetaData(?:(?:ExportedVar|Option|Macro)s|Node)|ttributes)|S(?:rvMetaData(?:(?:ExportedVar|Option)s|Node)|torageOptions))|(?:ustom(?:Plugins|Add)Param|ombModule)s)|p(?:ersistentStorageOptions|o(?:rtalSkinRules|st))|a(?:ut(?:hChoiceMod|oSigninR)ules|pplicationList)|v(?:hostOptions|irtualHost)|S(?:MTPTLSOpts|SLVarIf))$/; our $hashParameters = qr/^(?:(?:l(?:o(?:ca(?:lSessionStorageOption|tionRule)|goutService)|dapExportedVar|wp(?:Ssl)?Opt)|(?:(?:d(?:emo|bi)|facebook|webID)ExportedVa|exported(?:Heade|Va)|issuerDBGetParamete)r|re(?:moteGlobalStorageOption|st2f(?:Verify|Init)Arg|loadUrl)|g(?:r(?:antSessionRule|oup)|lobalStorageOption)|n(?:otificationStorageOption|ginxCustomHandler)|macro)s|o(?:idc(?:S(?:ervice(?:DynamicRegistrationEx(?:portedVar|traClaim)s|MetaDataAuthnContext)|torageOptions)|RPMetaData(?:(?:Option(?:sExtraClaim)?|ExportedVar|Macro)s|Node)|OPMetaData(?:(?:ExportedVar|Option)s|J(?:SON|WKS)|Node))|penIdExportedVars)|s(?:aml(?:S(?:PMetaData(?:(?:ExportedAttribute|Option|Macro)s|Node|XML)|torageOptions)|IDPMetaData(?:(?:ExportedAttribute|Option)s|Node|XML))|essionDataToRemember|laveExportedVars|fExtra)|c(?:as(?:A(?:ppMetaData(?:(?:ExportedVar|Option|Macro)s|Node)|ttributes)|S(?:rvMetaData(?:(?:ExportedVar|Option)s|Node)|torageOptions))|(?:ustom(?:Plugins|Add)Param|ombModule)s)|p(?:ersistentStorageOptions|o(?:rtalSkinRules|st))|a(?:ut(?:hChoiceMod|oSigninR)ules|pplicationList)|v(?:hostOptions|irtualHost)|S(?:MTPTLSOpts|SLVarIf))$/;
our $boolKeys = qr/^(?:s(?:aml(?:IDP(?:MetaDataOptions(?:(?:Check(?:S[LS]OMessageSignatur|Audienc|Tim)|IsPassiv)e|A(?:llow(?:LoginFromIDP|ProxiedAuthn)|daptSessionUtime)|Force(?:Authn|UTF8)|StoreSAMLToken|RelayStateURL)|SSODescriptorWantAuthnRequestsSigned)|S(?:P(?:MetaDataOptions(?:(?:CheckS[LS]OMessageSignatur|OneTimeUs)e|EnableIDPInitiatedURL|ForceUTF8)|SSODescriptor(?:WantAssertion|AuthnRequest)sSigned)|erviceUseCertificateInResponse)|DiscoveryProtocol(?:Activation|IsPassive)|CommonDomainCookieActivation|UseQueryStringSpecific|MetadataForceUTF8)|ingle(?:Session(?:UserByIP)?|(?:UserBy)?IP)|oap(?:Session|Config)Server|t(?:ayConnecte|orePasswor)d|kipRenewConfirmation|fRemovedUseNotif|laveDisplayLogo|howLanguages|slByAjax)|o(?:idc(?:RPMetaDataOptions(?:Re(?:freshToken|quirePKCE)|LogoutSessionRequired|IDTokenForceClaims|BypassConsent|AllowOffline|Public)|ServiceAllow(?:(?:AuthorizationCode|Implicit|Hybrid)Flow|DynamicRegistration)|OPMetaDataOptions(?:(?:CheckJWTSignatur|UseNonc)e|StoreIDToken))|ldNotifFormat)|p(?:ortal(?:Display(?:Re(?:setPassword|gister)|GeneratePassword|PasswordPolicy)|ErrorOn(?:ExpiredSession|MailNotFound)|(?:CheckLogin|Statu)s|OpenLinkInNewWindow|RequireOldPassword|ForceAuthn|AntiFrame)|roxyUseSoap)|c(?:a(?:ptcha_(?:register|login|mail)_enabled|sSrvMetaDataOptions(?:Gateway|Renew))|heck(?:User(?:Display(?:PersistentInfo|EmptyValues))?|State|XSS)|o(?:ntextSwitchingStopWithLogout|rsEnabled)|da)|l(?:dap(?:(?:Group(?:DecodeSearchedValu|Recursiv)|UsePasswordResetAttribut)e|(?:AllowResetExpired|Set)Password|ChangePasswordAsUser|PpolicyControl|ITDS)|oginHistoryEnabled)|i(?:ssuerDB(?:OpenID(?:Connect)?|SAML|CAS|Get)Activation|mpersonationSkipEmptyValues)|no(?:tif(?:ication(?:Server(?:(?:POS|GE)T|DELETE)?)?|y(?:Deleted|Other))|AjaxHook)|to(?:tp2f(?:UserCan(?:Chang|Remov)eKey|DisplayExistingSecret)|kenUseGlobalStorage)|u(?:se(?:RedirectOn(?:Forbidden|Error)|SafeJail)|2fUserCanRemoveKey|pgradeSession)|re(?:st(?:(?:Session|Config)Server|ExportSecretKeys)|freshSessions)|d(?:isablePersistentStorage|biDynamicHashEnabled|ontCompactConf)|(?:mai(?:lOnPasswordChang|ntenanc)|vhostMaintenanc)e|br(?:owsersDontStorePassword|uteForceProtection)|(?:(?:globalLogout|active)Tim|wsdlServ)er|h(?:ideOldPassword|ttpOnly)|yubikey2fUserCanRemoveKey|krb(?:RemoveDomain|ByJs))$/; our $boolKeys = qr/^(?:s(?:aml(?:IDP(?:MetaDataOptions(?:(?:Check(?:S[LS]OMessageSignatur|Audienc|Tim)|IsPassiv)e|A(?:llow(?:LoginFromIDP|ProxiedAuthn)|daptSessionUtime)|Force(?:Authn|UTF8)|StoreSAMLToken|RelayStateURL)|SSODescriptorWantAuthnRequestsSigned)|S(?:P(?:MetaDataOptions(?:(?:CheckS[LS]OMessageSignatur|OneTimeUs)e|EnableIDPInitiatedURL|ForceUTF8)|SSODescriptor(?:WantAssertion|AuthnRequest)sSigned)|erviceUseCertificateInResponse)|DiscoveryProtocol(?:Activation|IsPassive)|CommonDomainCookieActivation|UseQueryStringSpecific|MetadataForceUTF8)|ingle(?:Session(?:UserByIP)?|(?:UserBy)?IP)|oap(?:Session|Config)Server|t(?:ayConnecte|orePasswor)d|kipRenewConfirmation|fRemovedUseNotif|laveDisplayLogo|howLanguages|slByAjax)|o(?:idc(?:RPMetaDataOptions(?:Re(?:freshToken|quirePKCE)|LogoutSessionRequired|IDTokenForceClaims|BypassConsent|AllowOffline|Public)|ServiceAllow(?:(?:AuthorizationCode|Implicit|Hybrid)Flow|DynamicRegistration)|OPMetaDataOptions(?:(?:CheckJWTSignatur|UseNonc)e|StoreIDToken))|ldNotifFormat)|p(?:ortal(?:Display(?:Re(?:setPassword|gister)|GeneratePassword|PasswordPolicy)|ErrorOn(?:ExpiredSession|MailNotFound)|(?:CheckLogin|Statu)s|OpenLinkInNewWindow|RequireOldPassword|ForceAuthn|AntiFrame)|roxyUseSoap)|c(?:a(?:ptcha_(?:register|login|mail)_enabled|sSrvMetaDataOptions(?:Gateway|Renew))|heck(?:User(?:Display(?:PersistentInfo|EmptyValues))?|State|XSS)|o(?:ntextSwitchingStopWithLogout|mpactConf|rsEnabled)|da)|l(?:dap(?:(?:Group(?:DecodeSearchedValu|Recursiv)|UsePasswordResetAttribut)e|(?:AllowResetExpired|Set)Password|ChangePasswordAsUser|PpolicyControl|ITDS)|oginHistoryEnabled)|i(?:ssuerDB(?:OpenID(?:Connect)?|SAML|CAS|Get)Activation|mpersonationSkipEmptyValues)|no(?:tif(?:ication(?:Server(?:(?:POS|GE)T|DELETE)?)?|y(?:Deleted|Other))|AjaxHook)|to(?:tp2f(?:UserCan(?:Chang|Remov)eKey|DisplayExistingSecret)|kenUseGlobalStorage)|u(?:se(?:RedirectOn(?:Forbidden|Error)|SafeJail)|2fUserCanRemoveKey|pgradeSession)|re(?:st(?:(?:Session|Config)Server|ExportSecretKeys)|freshSessions)|(?:mai(?:lOnPasswordChang|ntenanc)|vhostMaintenanc)e|d(?:isablePersistentStorage|biDynamicHashEnabled)|br(?:owsersDontStorePassword|uteForceProtection)|(?:(?:globalLogout|active)Tim|wsdlServ)er|h(?:ideOldPassword|ttpOnly)|yubikey2fUserCanRemoveKey|krb(?:RemoveDomain|ByJs))$/;
our @sessionTypes = ( 'remoteGlobal', 'global', 'localSession', 'persistent', 'saml', 'oidc', 'cas' ); our @sessionTypes = ( 'remoteGlobal', 'global', 'localSession', 'persistent', 'saml', 'oidc', 'cas' );
......
# This file is generated by Lemonldap::NG::Manager::Build. Don't modify it by hand # This file is generated by Lemonldap::NG::Manager::Build. Don't modify it by hand
package Lemonldap::NG::Common::Conf::DefaultValues; package Lemonldap::NG::Common::Conf::DefaultValues;
our $VERSION = '2.0.7'; our $VERSION = '2.0.8';
sub defaultValues { sub defaultValues {
return { return {
......
...@@ -5,7 +5,7 @@ use strict; ...@@ -5,7 +5,7 @@ use strict;
use Exporter 'import'; use Exporter 'import';
use base qw(Exporter); use base qw(Exporter);
our $VERSION = '2.0.7'; our $VERSION = '2.0.8';
our %EXPORT_TAGS = ( 'all' => [qw($simpleHashKeys $doubleHashKeys $specialNodeKeys $casAppMetaDataNodeKeys $casSrvMetaDataNodeKeys $oidcOPMetaDataNodeKeys $oidcRPMetaDataNodeKeys $samlIDPMetaDataNodeKeys $samlSPMetaDataNodeKeys $virtualHostKeys $specialNodeHash $authParameters $issuerParameters $samlServiceParameters $oidcServiceParameters $casServiceParameters)] ); our %EXPORT_TAGS = ( 'all' => [qw($simpleHashKeys $doubleHashKeys $specialNodeKeys $casAppMetaDataNodeKeys $casSrvMetaDataNodeKeys $oidcOPMetaDataNodeKeys $oidcRPMetaDataNodeKeys $samlIDPMetaDataNodeKeys $samlSPMetaDataNodeKeys $virtualHostKeys $specialNodeHash $authParameters $issuerParameters $samlServiceParameters $oidcServiceParameters $casServiceParameters)] );
our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } ); our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
......
...@@ -4,7 +4,7 @@ package Lemonldap::NG::Handler::Lib::StatusConstants; ...@@ -4,7 +4,7 @@ package Lemonldap::NG::Handler::Lib::StatusConstants;
use strict; use strict;
use Exporter 'import'; use Exporter 'import';
our $VERSION = '2.0.7'; our $VERSION = '2.0.8';
sub portalConsts { sub portalConsts {
return { return {
......
# This file is generated by Lemonldap::NG::Manager::Build. Don't modify it by hand # This file is generated by Lemonldap::NG::Manager::Build. Don't modify it by hand
package Lemonldap::NG::Manager::Attributes; package Lemonldap::NG::Manager::Attributes;
our $VERSION = '2.0.7'; our $VERSION = '2.0.8';
sub perlExpr { sub perlExpr {
my ( $val, $conf ) = @_; my ( $val, $conf ) = @_;
...@@ -968,6 +968,10 @@ qr/(?:(?:https?):\/\/(?:(?:(?:(?:(?:(?:[a-zA-Z0-9][-a-zA-Z0-9]*)?[a-zA-Z0-9])[.] ...@@ -968,6 +968,10 @@ qr/(?:(?:https?):\/\/(?:(?:(?:(?:(?:(?:[a-zA-Z0-9][-a-zA-Z0-9]*)?[a-zA-Z0-9])[.]
}, },
'type' => 'cmbModuleContainer' 'type' => 'cmbModuleContainer'
}, },
'compactConf' => {
'default' => 0,
'type' => 'bool'
},
'configStorage' => { 'configStorage' => {
'type' => 'text' 'type' => 'text'
}, },
...@@ -1185,10 +1189,6 @@ qr/(?:(?:https?):\/\/(?:(?:(?:(?:(?:(?:[a-zA-Z0-9][-a-zA-Z0-9]*)?[a-zA-Z0-9])[.] ...@@ -1185,10 +1189,6 @@ qr/(?:(?:https?):\/\/(?:(?:(?:(?:(?:(?:[a-zA-Z0-9][-a-zA-Z0-9]*)?[a-zA-Z0-9])[.]
qr/^(?:(?:(?:(?:(?:[a-zA-Z0-9][-a-zA-Z0-9]*)?[a-zA-Z0-9])[.])*(?:[a-zA-Z][-a-zA-Z0-9]*[a-zA-Z0-9]|[a-zA-Z])[.]?))?$/, qr/^(?:(?:(?:(?:(?:[a-zA-Z0-9][-a-zA-Z0-9]*)?[a-zA-Z0-9])[.])*(?:[a-zA-Z][-a-zA-Z0-9]*[a-zA-Z0-9]|[a-zA-Z])[.]?))?$/,
'type' => 'text' 'type' => 'text'
}, },
'dontCompactConf' => {
'default' => 0,
'type' => 'bool'
},
'exportedAttr' => { 'exportedAttr' => {
'type' => 'text' 'type' => 'text'
}, },
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
package Lemonldap::NG::Manager::Build::Attributes; package Lemonldap::NG::Manager::Build::Attributes;
our $VERSION = '2.0.7'; our $VERSION = '2.0.8';
use strict; use strict;
use Regexp::Common qw/URI/; use Regexp::Common qw/URI/;
...@@ -390,7 +390,7 @@ sub attributes { ...@@ -390,7 +390,7 @@ sub attributes {
msgFail => '__badUrl__', msgFail => '__badUrl__',
documentation => 'URL to call on reload', documentation => 'URL to call on reload',
}, },
dontCompactConf => { compactConf => {
type => 'bool', type => 'bool',
default => 0, default => 0,
documentation => 'Don t compact configuration', documentation => 'Don t compact configuration',
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
package Lemonldap::NG::Manager::Build::Tree; package Lemonldap::NG::Manager::Build::Tree;
our $VERSION = '2.0.7'; our $VERSION = '2.0.8';
# TODO: Missing: # TODO: Missing:
# * activeTimer # * activeTimer
...@@ -571,7 +571,7 @@ sub tree { ...@@ -571,7 +571,7 @@ sub tree {
title => 'reloadParams', title => 'reloadParams',
help => 'configlocation.html#configuration_reload', help => 'configlocation.html#configuration_reload',
nodes => nodes =>
[ 'reloadUrls', 'reloadTimeout', 'dontCompactConf' ] [ 'reloadUrls', 'reloadTimeout', 'compactConf' ]
}, },
{ {
title => 'plugins', title => 'plugins',
......
...@@ -26,7 +26,7 @@ use JSON 'to_json'; ...@@ -26,7 +26,7 @@ use JSON 'to_json';
use Lemonldap::NG::Common::Conf::ReConstants; use Lemonldap::NG::Common::Conf::ReConstants;
use Lemonldap::NG::Manager::Attributes; use Lemonldap::NG::Manager::Attributes;
our $VERSION = '2.0.7'; our $VERSION = '2.0.8';
extends 'Lemonldap::NG::Common::Conf::Compact'; extends 'Lemonldap::NG::Common::Conf::Compact';
...@@ -115,19 +115,19 @@ sub check { ...@@ -115,19 +115,19 @@ sub check {
$self->message('__confNotChanged__'); $self->message('__confNotChanged__');
return 0; return 0;
} }
unless ( $self->newConf->{dontCompactConf} ) { if ( $self->newConf->{compactConf} ) {
foreach ( sort keys %conf ) { foreach ( sort keys %conf ) {
push @removedKeys, $_ unless exists $compactedConf{$_}; push @removedKeys, $_ unless exists $compactedConf{$_};
} }
} }
push @{ $self->changes }, push @{ $self->changes },
( (
$self->{newConf}->{dontCompactConf} $self->{newConf}->{compactConf}
? { confCompacted => '0' } ? {
: {
confCompacted => '1', confCompacted => '1',
removedKeys => join( $separator, @removedKeys ) removedKeys => join( $separator, @removedKeys )
} }
: { confCompacted => '0' }
); );
return 1; return 1;
} }
...@@ -266,7 +266,8 @@ sub _scanNodes { ...@@ -266,7 +266,8 @@ sub _scanNodes {
$leaf->{comment} $leaf->{comment}
? "(?#$leaf->{comment})$leaf->{re}" ? "(?#$leaf->{comment})$leaf->{re}"
: $leaf->{re}; : $leaf->{re};
$k .= "(?#AuthnLevel=$leaf->{level})" if $leaf->{level}; $k .= "(?#AuthnLevel=$leaf->{level})"
if $leaf->{level};
$self->set( $target, $key, $k, $leaf->{data} ); $self->set( $target, $key, $k, $leaf->{data} );
} }
else { else {
...@@ -334,7 +335,9 @@ sub _scanNodes { ...@@ -334,7 +335,9 @@ sub _scanNodes {
hdebug(" SAML data is an array, serializing"); hdebug(" SAML data is an array, serializing");
$leaf->{data} = join ';', @{ $leaf->{data} }; $leaf->{data} = join ';', @{ $leaf->{data} };
} }
if ( $target =~ /^saml(?:S|ID)PMetaData(?:ExportedAttributes|Macros)$/ ) { if ( $target =~
/^saml(?:S|ID)PMetaData(?:ExportedAttributes|Macros)$/ )
{
if ( $leaf->{cnodes} ) { if ( $leaf->{cnodes} ) {
hdebug(" $target: unopened node"); hdebug(" $target: unopened node");
$self->newConf->{$target}->{$key} = $self->newConf->{$target}->{$key} =
...@@ -394,7 +397,9 @@ sub _scanNodes { ...@@ -394,7 +397,9 @@ sub _scanNodes {
hdebug(" $target"); hdebug(" $target");
$self->set( $target, $key, $leaf->{data} ); $self->set( $target, $key, $leaf->{data} );
} }
elsif ( $target =~ /^oidc(?:O|R)PMetaData(?:ExportedVars|Macros)$/ ) { elsif (
$target =~ /^oidc(?:O|R)PMetaData(?:ExportedVars|Macros)$/ )
{
hdebug(" $target"); hdebug(" $target");
if ( $leaf->{cnodes} ) { if ( $leaf->{cnodes} ) {
hdebug(' unopened'); hdebug(' unopened');
...@@ -463,7 +468,9 @@ sub _scanNodes { ...@@ -463,7 +468,9 @@ sub _scanNodes {
$self->_scanNodes($subNodes); $self->_scanNodes($subNodes);
$self->set( $target, $key, $leaf->{title}, $leaf->{data} ); $self->set( $target, $key, $leaf->{title}, $leaf->{data} );
} }
elsif ( $target =~ /^cas(?:App|Srv)MetaData(?:ExportedVars|Macros)$/ ) { elsif ( $target =~
/^cas(?:App|Srv)MetaData(?:ExportedVars|Macros)$/ )
{
hdebug(" $target"); hdebug(" $target");
if ( $leaf->{cnodes} ) { if ( $leaf->{cnodes} ) {
hdebug(' unopened'); hdebug(' unopened');
......
...@@ -273,7 +273,7 @@ ...@@ -273,7 +273,7 @@
"dateTitle":"تاريخ", "dateTitle":"تاريخ",
"dn":"دي أن", "dn":"دي أن",
"domain":"نطاق", "domain":"نطاق",
"dontCompactConf":"Don't compact configuration file", "compactConf":"Compact configuration file",
"download":"تحميل", "download":"تحميل",
"downloadIt":"نزله", "downloadIt":"نزله",
"duplicate":"مكررة", "duplicate":"مكررة",
......
...@@ -273,7 +273,7 @@ ...@@ -273,7 +273,7 @@
"dateTitle":"Dates", "dateTitle":"Dates",
"dn":"DN", "dn":"DN",
"domain":"Domain", "domain":"Domain",
"dontCompactConf":"Don't compact configuration file", "compactConf":"Compact configuration file",
"download":"Download", "download":"Download",
"downloadIt":"Download it", "downloadIt":"Download it",
"duplicate":"Duplicate", "duplicate":"Duplicate",
......
...@@ -273,7 +273,7 @@ ...@@ -273,7 +273,7 @@
"dateTitle":"Dates", "dateTitle":"Dates",
"dn":"DN", "dn":"DN",
"domain":"Domain", "domain":"Domain",
"dontCompactConf":"Don't compact configuration file", "compactConf":"Compact configuration file",
"download":"Download", "download":"Download",
"downloadIt":"Download it", "downloadIt":"Download it",
"duplicate":"Duplicate", "duplicate":"Duplicate",
......
...@@ -273,7 +273,7 @@ ...@@ -273,7 +273,7 @@
"dateTitle":"Dates", "dateTitle":"Dates",
"dn":"DN", "dn":"DN",
"domain":"Domaine", "domain":"Domaine",
"dontCompactConf":"Ne pas compacter le fichier de configuration", "compactConf":"Compacter le fichier de configuration",
"download":"Télécharger", "download":"Télécharger",
"downloadIt":"Télécharger", "downloadIt":"Télécharger",
"duplicate":"Dupliquer", "duplicate":"Dupliquer",
......
...@@ -273,7 +273,7 @@ ...@@ -273,7 +273,7 @@
"dateTitle":"Date", "dateTitle":"Date",
"dn":"DN", "dn":"DN",
"domain":"Dominio", "domain":"Dominio",
"dontCompactConf":"Don't compact configuration file", "compactConf":"Compact configuration file",
"download":"Scarica", "download":"Scarica",
"downloadIt":"Scaricalo", "downloadIt":"Scaricalo",
"duplicate":"Duplicato", "duplicate":"Duplicato",
......
...@@ -273,7 +273,7 @@ ...@@ -273,7 +273,7 @@
"dateTitle":"Tarihler", "dateTitle":"Tarihler",
"dn":"DN", "dn":"DN",
"domain":"Etki alanı", "domain":"Etki alanı",
"dontCompactConf":"Yapılandırma dosyasını sıkıştırma", "compactConf":"Compact configuration file",
"download":"İndir", "download":"İndir",
"downloadIt":"İndir", "downloadIt":"İndir",
"duplicate":"Mükerrer", "duplicate":"Mükerrer",
......
...@@ -273,7 +273,7 @@ ...@@ -273,7 +273,7 @@
"dateTitle":"Ngày", "dateTitle":"Ngày",
"dn":"DN", "dn":"DN",
"domain":"Tên miền", "domain":"Tên miền",
"dontCompactConf":"Don't compact configuration file", "compactConf":"Compact configuration file",
"download":"Tải xuống", "download":"Tải xuống",
"downloadIt":"Tải xuống", "downloadIt":"Tải xuống",
"duplicate":"Sao y", "duplicate":"Sao y",
......
...@@ -273,7 +273,7 @@ ...@@ -273,7 +273,7 @@
"dateTitle":"日期", "dateTitle":"日期",
"dn":"LDAP 唯一名称", "dn":"LDAP 唯一名称",
"domain":"域", "domain":"域",
"dontCompactConf":"Don't compact configuration file", "compactConf":"Compact configuration file",
"download":"下载", "download":"下载",
"downloadIt":"下载它", "downloadIt":"下载它",
"duplicate":"Duplicate", "duplicate":"Duplicate",
......
...@@ -154,6 +154,7 @@ ...@@ -154,6 +154,7 @@
}, },
"portal": "http://auth.example.com/", "portal": "http://auth.example.com/",
"reloadUrls": {}, "reloadUrls": {},
"compactConf": 1,
"securedCookie": 0, "securedCookie": 0,
"sessionDataToRemember": {}, "sessionDataToRemember": {},
"timeout": 72000, "timeout": 72000,
......
...@@ -1379,6 +1379,12 @@ ...@@ -1379,6 +1379,12 @@
"title": "reloadUrls", "title": "reloadUrls",
"type": "keyTextContainer" "type": "keyTextContainer"
}, { }, {
"default": 0,
"id": "compactConf",
"title": "compactConf",
"type": "bool",
"data": 1
}, {
"id": "advancedParams", "id": "advancedParams",
"title": "advancedParams", "title": "advancedParams",
"nodes": [{ "nodes": [{
......
...@@ -1380,6 +1380,12 @@ ...@@ -1380,6 +1380,12 @@
"id": "reloadUrls", "id": "reloadUrls",
"title": "reloadUrls", "title": "reloadUrls",
"type": "keyTextContainer" "type": "keyTextContainer"
}, {
"default": 0,
"id": "compactConf",
"title": "compactConf",
"type": "bool",
"data": 1
}, { }, {
"id": "advancedParams", "id": "advancedParams",
"title": "advancedParams", "title": "advancedParams",
......
...@@ -1209,10 +1209,19 @@ ...@@ -1209,10 +1209,19 @@
"id": "sessionParams", "id": "sessionParams",
"title": "sessionParams" "title": "sessionParams"
}, { }, {
"cnodes": "reloadUrls", "_nodes": [{
"id": "reloadUrls", "cnodes": "reloadUrls",
"title": "reloadUrls", "id": "reloadUrls",
"type": "keyTextContainer" "title": "reloadUrls",
"type": "keyTextContainer"
}, {
"default": 0,
"id": "compactConf",
"title": "compactConf",
"type": "bool"
}],
"id": "reloadParams",
"title": "reloadParams"
}, { }, {
"_nodes": [{ "_nodes": [{
"id": "customFunctions", "id": "customFunctions",
......
...@@ -4,7 +4,7 @@ package Lemonldap::NG::Portal::Main::Constants; ...@@ -4,7 +4,7 @@ package Lemonldap::NG::Portal::Main::Constants;
use strict; use strict;
use Exporter 'import'; use Exporter 'import';
our $VERSION = '2.0.7'; our $VERSION = '2.0.8';
use constant HANDLER => 'Lemonldap::NG::Handler::PSGI::Main'; use constant HANDLER => 'Lemonldap::NG::Handler::PSGI::Main';
use constant { use constant {
......
...@@ -150,6 +150,7 @@ sub sp { ...@@ -150,6 +150,7 @@ sub sp {
portal => 'http://auth.sp.com', portal => 'http://auth.sp.com',
authentication => 'CAS', authentication => 'CAS',
userDB => 'CAS', userDB => 'CAS',
compactConf => 1,
restSessionServer => 1, restSessionServer => 1,
issuerDBCASActivation => 0, issuerDBCASActivation => 0,
multiValuesSeparator => ';', multiValuesSeparator => ';',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment