Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
lemonldap-ng
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xavier Bachelot
lemonldap-ng
Commits
6ac420ee
Commit
6ac420ee
authored
Jan 12, 2016
by
Yadd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2 bugs; avoid "each" and complete hash list
parent
cc5dfe2c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
3 deletions
+18
-3
lemonldap-ng-common/lib/Lemonldap/NG/Common/Conf/Constants.pm
...nldap-ng-common/lib/Lemonldap/NG/Common/Conf/Constants.pm
+1
-1
lemonldap-ng-common/lib/Lemonldap/NG/Common/Conf/Serializer.pm
...ldap-ng-common/lib/Lemonldap/NG/Common/Conf/Serializer.pm
+2
-1
lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Build.pm
lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Build.pm
+15
-1
No files found.
lemonldap-ng-common/lib/Lemonldap/NG/Common/Conf/Constants.pm
View file @
6ac420ee
...
@@ -23,7 +23,7 @@ use constant HANDLERSECTION => "handler";
...
@@ -23,7 +23,7 @@ use constant HANDLERSECTION => "handler";
use
constant
MANAGERSECTION
=>
"
manager
";
use
constant
MANAGERSECTION
=>
"
manager
";
use
constant
SESSIONSEXPLORERSECTION
=>
"
sessionsExplorer
";
use
constant
SESSIONSEXPLORERSECTION
=>
"
sessionsExplorer
";
use
constant
APPLYSECTION
=>
"
apply
";
use
constant
APPLYSECTION
=>
"
apply
";
our
$hashParameters
=
qr/^(?:(?:
g(?:r(?:antSessionRule|oup)|lobalStorageOption|oogleExportedVar)|l(?:o(?:calSessionStorageOption|goutService)|dapExportedVar)|ca(?:s(?:StorageOption|Attribute)|ptchaStorageOption)|(?:(?:d(?:emo|bi)|facebook|webID)E|e)xportedVar|p(?:ersistentStorageOption|ortalSkinRule)|re(?:moteGlobalStorageOption|loadUrl)|notificationStorageOption|CAS_proxiedService|macro)s|s(?:aml(?:S(?:PMetaDataNode|torageOptions)|IDPMetaDataNode)|essionDataToRemember|laveExportedVars)|o(?:idc(?:S(?:erviceMetaDataAuthnContext|torageOptions)|[OR]PMetaDataNode)|penIdExportedVars)|a(?:uthChoiceModules|pplicationList)|virtualHost
)$/
;
our
$hashParameters
=
qr/^(?:(?:
l(?:o(?:ca(?:lSessionStorageOption|tionRule)|goutService)|dapExportedVar)|(?:(?:d(?:emo|bi)|facebook|webID)ExportedVa|exported(?:Heade|Va))r|g(?:r(?:antSessionRule|oup)|lobalStorageOption|oogleExportedVar)|ca(?:s(?:StorageOption|Attribute)|ptchaStorageOption)|re(?:moteGlobalStorageOption|loadUrl)|notificationStorageOption|CAS_proxiedService|macro)s|o(?:idc(?:OPMetaData(?:(?:ExportedVar|Option)s|J(?:SON|WKS)|Node)|S(?:erviceMetaDataAuthnContext|torageOptions)|RPMetaData(?:(?:ExportedVar|Option)s|Node))|penIdExportedVars)|s(?:aml(?:S(?:PMetaData(?:(?:ExportedAttribute|Option)s|Node|XML)|torageOptions)|IDPMetaData(?:(?:ExportedAttribute|Option)s|Node|XML))|essionDataToRemember|laveExportedVars)|p(?:ersistentStorageOptions|o(?:rtalSkinRules|st))|a(?:uthChoiceModules|pplicationList)|v(?:hostOptions|irtualHost)
)$/
;
our
%EXPORT_TAGS
=
(
our
%EXPORT_TAGS
=
(
...
...
lemonldap-ng-common/lib/Lemonldap/NG/Common/Conf/Serializer.pm
View file @
6ac420ee
...
@@ -91,7 +91,8 @@ sub unserialize {
...
@@ -91,7 +91,8 @@ sub unserialize {
my
$conf
;
my
$conf
;
# Parse fields
# Parse fields
while
(
my
(
$k
,
$v
)
=
each
(
%$fields
)
)
{
foreach
my
$k
(
keys
%$fields
)
{
my
$v
=
$fields
->
{
$k
};
if
(
$k
=~
$hashParameters
)
{
if
(
$k
=~
$hashParameters
)
{
unless
(
utf8::
is_utf8
(
$v
)
)
{
unless
(
utf8::
is_utf8
(
$v
)
)
{
$v
=
encode
(
'
UTF-8
',
$v
);
$v
=
encode
(
'
UTF-8
',
$v
);
...
...
lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Build.pm
View file @
6ac420ee
...
@@ -222,7 +222,21 @@ $defaultAttr}
...
@@ -222,7 +222,21 @@ $defaultAttr}
foreach
(
@simpleHashKeys
,
sort
keys
%cnodesRe
)
{
foreach
(
@simpleHashKeys
,
sort
keys
%cnodesRe
)
{
$ra
->
add
(
$_
);
$ra
->
add
(
$_
);
}
}
my
$confConstants
=
"
our
\$
hashParameters = qr/^
"
.
$ra
->
as_string
.
"
\$
/;
\n
";
foreach
(
qw(exportedHeaders locationRules post vhostOptions
samlIDPMetaDataXML samlIDPMetaDataExportedAttributes
samlIDPMetaDataOptions samlSPMetaDataXML
samlSPMetaDataExportedAttributes samlSPMetaDataOptions
oidcOPMetaDataJSON oidcOPMetaDataJWKS oidcOPMetaDataOptions
oidcOPMetaDataExportedVars oidcRPMetaDataOptions
oidcRPMetaDataExportedVars)
)
{
$ra
->
add
(
$_
);
}
my
$confConstants
=
"
our
\$
hashParameters = qr/^
"
.
$ra
->
as_string
.
"
\$
/;
\n
";
open
(
F
,
"
>
",
$self
->
confConstantsFile
)
or
die
(
$!
);
open
(
F
,
"
>
",
$self
->
confConstantsFile
)
or
die
(
$!
);
print
F
<<EOF;
print
F
<<EOF;
# This file is generated by $module. Don't modify it by hand
# This file is generated by $module. Don't modify it by hand
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment