[shibboleth-sp2] 17/82: SSPCPP-705 Test against misconfigured AttributeChecker Handler

Etienne Dysli Metref edm-guest at moszumanska.debian.org
Thu Nov 16 08:16:20 UTC 2017


This is an automated email from the git hooks/post-receive script.

edm-guest pushed a commit to branch master
in repository shibboleth-sp2.

commit 81375040470235400dffcc0f5136e8cbb58ce785
Author: Rod Widdowson <rdw at steadingsoftware.com>
Date:   Sat Feb 25 14:14:02 2017 +0000

    SSPCPP-705 Test against misconfigured AttributeChecker Handler
    
    https://issues.shibboleth.net/jira/browse/SSPCPP-705
---
 shibsp/handler/impl/AttributeCheckerHandler.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/shibsp/handler/impl/AttributeCheckerHandler.cpp b/shibsp/handler/impl/AttributeCheckerHandler.cpp
index d4b86a9..a46194e 100644
--- a/shibsp/handler/impl/AttributeCheckerHandler.cpp
+++ b/shibsp/handler/impl/AttributeCheckerHandler.cpp
@@ -128,6 +128,9 @@ AttributeCheckerHandler::AttributeCheckerHandler(const DOMElement* e, const char
         if (m_attributes.empty())
             throw ConfigurationException("AttributeChecker unable to parse attributes setting.");
     }
+    else if (nullptr == XMLHelper::getFirstChildElement(e)) {
+        throw ConfigurationException("AttributeChecker requires either the attributes setting or an ACL");
+    }
     else {
         m_acl.reset(SPConfig::getConfig().AccessControlManager.newPlugin(XML_ACCESS_CONTROL, e));
     }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-shibboleth/shibboleth-sp2.git



More information about the Pkg-shibboleth-devel mailing list