Skip to content
Permalink
main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
…tity Category
0 contributors

Users who have contributed to this file

executable file 18 lines (15 sloc) 602 Bytes
#!/usr/bin/perl -wni
# If line contains HideFromWAYF, replace it with the Entity Category
if (/HideFromWAYF/) {
print <<EOF;
<mdattr:EntityAttributes>
<saml:Attribute Name="http://macedir.org/entity-category" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
<saml:AttributeValue>http://refeds.org/category/hide-from-discovery</saml:AttributeValue>
</saml:Attribute>
</mdattr:EntityAttributes>
EOF
# and don't print the line containing HideFromWAYF
next;
}
# If the line didn't have HideFromWAYF, print it unchanged
print;