From 7c2c5ce5b600815485c41ff45874447fae5ca0fc Mon Sep 17 00:00:00 2001 From: cantor Date: Wed, 10 Jun 2009 20:01:41 +0000 Subject: [PATCH] Change default for acsByIndex to false. git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/branches/REL_2@3042 cb58f699-b61c-0410-a6fe-9272a202ed29 --- configs/shibboleth2.xml | 6 +++--- shibsp/handler/impl/SAML2SessionInitiator.cpp | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/configs/shibboleth2.xml b/configs/shibboleth2.xml index 1b78063..9458846 100644 --- a/configs/shibboleth2.xml +++ b/configs/shibboleth2.xml @@ -109,20 +109,20 @@ - + - + - + diff --git a/shibsp/handler/impl/SAML2SessionInitiator.cpp b/shibsp/handler/impl/SAML2SessionInitiator.cpp index ead5ee4..096302b 100644 --- a/shibsp/handler/impl/SAML2SessionInitiator.cpp +++ b/shibsp/handler/impl/SAML2SessionInitiator.cpp @@ -341,7 +341,7 @@ pair SAML2SessionInitiator::run(SPRequest& request, string& entityID, SPConfig& conf = SPConfig::getConfig(); if (conf.isEnabled(SPConfig::OutOfProcess)) { - if (!acsByIndex.first || acsByIndex.second) { + if (acsByIndex.first && acsByIndex.second) { // Pass by Index. if (isHandler) { // We may already have RelayState set if we looped back here, @@ -417,7 +417,7 @@ pair SAML2SessionInitiator::run(SPRequest& request, string& entityID, in.addmember("authnContextClassRef").string(acClass.second); if (acComp.first) in.addmember("authnContextComparison").string(acComp.second); - if (!acsByIndex.first || acsByIndex.second) { + if (acsByIndex.first && acsByIndex.second) { if (ACS) { // Determine index to use. pair ix = pair(false,NULL); -- 2.1.4