[cpp-sp] 06/09: SSPCPP-705 Test against misconfigured AttributeChecker Handler

Scott Cantor cantor.2 at osu.edu
Mon Nov 13 11:46:30 EST 2017


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

scantor pushed a commit to branch maint-2.6
in repository cpp-sp.

View the commit online:
http://git.shibboleth.net/view/?p=cpp-sp.git;a=commit;h=68a9cf9b331cd517b37bf149757fdf672374cc75

commit 68a9cf9b331cd517b37bf149757fdf672374cc75
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: 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));
     }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list