summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBjörn Mattsson <Bjorn.Mattsson@bth.se>2018-04-12 08:39:15 +0200
committerBjörn Mattsson <Bjorn.Mattsson@bth.se>2018-04-12 08:39:15 +0200
commit06b56340d382a51b5c97866d792d2b964e88310b (patch)
tree6adcba856abb131ff6edd955c3faf5197011a629 /Makefile
parentf8e564153aef4836a0fb0beea0bd4cf4ba64511c (diff)
Added test for unwanted ADFS data in xml. Tested on fs.test.ad.liu.se
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 668eff37..d8655da6 100644
--- a/Makefile
+++ b/Makefile
@@ -221,6 +221,21 @@ testBadStrings:
@echo "Check for bad strings in metadata"
@for x in `find $(SRCDIRS) -name \*.xml`; do grep -E 'ServiceName xml:lang="[^"]*"/>' $$x | sed 's/^/ /' ; done | grep . && exit 1 || exit 0
+testRoleDescriptor:
+ @echo "Check for RoleDescriptor that should be removed"
+ @for x in `find $(SRCDIRS) -name \*.xml`; do \
+ grep -EH 'RoleDescriptor.*xsi:type="fed:(ApplicationServiceType|SecurityTokenServiceType)"' $$x | \
+ sed -e 's/^/ /' -e 's/xmlns.*xsi:type="fed:/xsi:type="fed:/' -e 's/ protocol.*>/>/' -e 's/.*/&/' ; \
+ done | grep . && echo "Please remove"
+
+testAttributeInIdP:
+ @echo "Check for Attribute inside IDPSSODescriptor"
+ @for x in `find $(SRCDIRS) -name \*.xml`; do \
+ if cat $$x | sed 's;\(</*\)[a-z0-9]*:;\1;g' | sed 's/xmlns="[^"]*"//' | xmllint --xpath "/EntityDescriptor/IDPSSODescriptor" - 2>/dev/null | grep -q " <Attribute" ; then \
+ echo " $$x" | sed 's/.*/&/' ;\
+ fi;\
+ done | grep . && echo "Please remove this Attributes"
+
test: syntaxtest testMDUI testOrgData testEntCat testSimpleSign testALlevel testEduGAINchecks testRefedsRnS testGeantCoCo testMetadataUsage testBadStrings testIdPinSP
deeptest: test testMDUIreach