Skip to content

Commit

Permalink
Merge pull request #132 from Edugate/develop
Browse files Browse the repository at this point in the history
arp xml - remain only elements where PermitValueRule is set
  • Loading branch information
janul committed Nov 18, 2014
2 parents 83e1b60 + 0440b46 commit 4f23d86
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions application/libraries/Arp_generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,24 +205,26 @@ public function arpArrayToXML(array $release)
}
else
{
if ($attr_value == 0)
if ($attr_value == 1)
{
$AttributeRule = $docXML->CreateElementNS('urn:mace:shibboleth:2.0:afp', 'AttributeRule');
$AttributeRule->setAttribute('attributeID', $attr_name);
$PermitValueRule = $docXML->CreateElementNS('urn:mace:shibboleth:2.0:afp', 'DenyValueRule');
$PermitValueRule = $docXML->CreateElementNS('urn:mace:shibboleth:2.0:afp', 'PermitValueRule');
$PermitValueRule->setAttributeNS('http://www.w3.org/2001/XMLSchema-instance', 'xsi:type', 'basic:ANY');
$AttributeFilterPolicy->appendChild($AttributeRule);
$AttributeRule->appendChild($PermitValueRule);
}
elseif ($attr_value == 1)
/**
else
{
$AttributeRule = $docXML->CreateElementNS('urn:mace:shibboleth:2.0:afp', 'AttributeRule');
$AttributeRule->setAttribute('attributeID', $attr_name);
$PermitValueRule = $docXML->CreateElementNS('urn:mace:shibboleth:2.0:afp', 'PermitValueRule');
$PermitValueRule = $docXML->CreateElementNS('urn:mace:shibboleth:2.0:afp', 'DenyValueRule');
$PermitValueRule->setAttributeNS('http://www.w3.org/2001/XMLSchema-instance', 'xsi:type', 'basic:ANY');
$AttributeFilterPolicy->appendChild($AttributeRule);
$AttributeRule->appendChild($PermitValueRule);
}
*/
}
}
}
Expand Down

0 comments on commit 4f23d86

Please sign in to comment.