Bug with samlIDPMetaDataOptions upload and use make tidy
This commit is contained in:
parent
ce8d8ee84e
commit
44aeddbc5c
|
@ -139,10 +139,13 @@ sub confUpload {
|
|||
} # END LOOP
|
||||
|
||||
# 1.4 Loading unchanged parameters (ajax nodes not open)
|
||||
$self->lmLog( "Save unchanged parameters", 'debug' );
|
||||
foreach ( @{ $result->getChildrenByTagName('ignore') } ) {
|
||||
my $node = $_->getAttribute('value');
|
||||
$node =~ s/^.*node=(.*?)(?:&.*)?\}$/$1/;
|
||||
$self->lmLog( "Unchanged node $node", 'debug' );
|
||||
foreach my $k ( $self->findAllConfKeys( $self->corresp($node) ) ) {
|
||||
$self->lmLog( "Unchanged key $k (node $node)", 'debug' );
|
||||
my $v = $self->keyToH( $k, $self->conf );
|
||||
$v = $self->keyToH( $k, $self->defaultConf ) unless ( defined $v );
|
||||
if ( defined $v ) {
|
||||
|
@ -307,6 +310,7 @@ sub findAllConfKeys {
|
|||
}
|
||||
foreach my $n ( @{ $h->{_nodes} } ) {
|
||||
$n =~ s/^.*?:(.*?)(?:\:.*)?$/$1/;
|
||||
$self->lmLog( "findAllConfKey: got node $n", 'debug' );
|
||||
if ( ref( $h->{$n} ) ) {
|
||||
push @res, $self->findAllConfKeys( $h->{$n} );
|
||||
}
|
||||
|
|
|
@ -294,7 +294,7 @@ sub struct {
|
|||
_nodes => [
|
||||
'nhash:/samlIDPMetaDataExportedAttributes:samlIDPMetaDataNode:samlMetaData'
|
||||
],
|
||||
_upload => ['/samlIDPMetaDataXML'],
|
||||
_upload => [ '/samlIDPMetaDataXML', '/samlIDPMetaDataOptions' ],
|
||||
_help => 'default',
|
||||
_call => '$(\'#newsamlmetadatab\').show();',
|
||||
},
|
||||
|
@ -818,6 +818,16 @@ sub defaultConf {
|
|||
samlIDPMetaDataXML => { 'authentic' => {} },
|
||||
samlIDPMetaDataExportedAttributes =>
|
||||
{ 'authentic' => { 'uid' => '0;uid;;' } },
|
||||
samlIDPMetaDataOptions => {
|
||||
'authentic' => {
|
||||
'samlIDPMetaDataOptionsNameIDFormat' => '',
|
||||
'samlIDPMetaDataOptionsForceAuthn' => '0',
|
||||
'samlIDPMetaDataOptionsAllowProxiedAuthn' => '1',
|
||||
'samlIDPMetaDataOptionsSSOBinding' => '',
|
||||
'samlIDPMetaDataOptionsSLOBinding' => '',
|
||||
'samlIDPMetaDataOptionsResolutionRule' => '',
|
||||
}
|
||||
},
|
||||
samlServicePrivateKey => '',
|
||||
samlEntityID => 'http://auth.example.com/saml/metadata',
|
||||
samlOrganizationDisplayName => 'Example',
|
||||
|
|
Loading…
Reference in New Issue
Block a user