From 76542b5b2a30882ded8c229274832fd652f7b7ca Mon Sep 17 00:00:00 2001
From: Olav Morken <olav.morken@uninett.no>
Date: Mon, 7 Mar 2011 13:27:13 +0000
Subject: [PATCH] saml:SP: Do not return PartialLogout error when unable to
 terminate all sessions.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2764 44740490-163a-0410-bde0-09ae8108e29a
---
 modules/saml/www/sp/saml2-logout.php | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/modules/saml/www/sp/saml2-logout.php b/modules/saml/www/sp/saml2-logout.php
index bd4f17b5e..c2e17b0f9 100644
--- a/modules/saml/www/sp/saml2-logout.php
+++ b/modules/saml/www/sp/saml2-logout.php
@@ -102,13 +102,8 @@ if ($message instanceof SAML2_LogoutResponse) {
 	$lr->setRelayState($message->getRelayState());
 	$lr->setInResponseTo($message->getId());
 
-	/* We should return a partial logout if we were unable to log out of all the given session(s). */
 	if ($numLoggedOut < count($sessionIndexes)) {
-		$lr->setStatus(array(
-			'Code' => SAML2_Const::STATUS_SUCCESS,
-			'SubCode' => SAML2_Const::STATUS_PARTIAL_LOGOUT,
-			'Message' => 'Logged out of ' . $numLoggedOut  . ' of ' . count($sessionIndexes) . ' sessions.'
-		));
+		SimpleSAML_Logger::warning('Logged out of ' . $numLoggedOut  . ' of ' . count($sessionIndexes) . ' sessions.');
 	}
 
 	$binding->send($lr);
-- 
GitLab