From: Michael M Slusarz Date: Tue, 25 Jan 2011 07:07:00 +0000 (-0700) Subject: Fix shibboleth authentication checking X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=b04881e7cd23e60a170445e83915fa7054567663;p=horde.git Fix shibboleth authentication checking Need to check shibboleth auth username to the original auth username, not the Horde username (since the Horde username may have been altered post-login by a hook). --- diff --git a/framework/Core/lib/Horde/Core/Auth/Shibboleth.php b/framework/Core/lib/Horde/Core/Auth/Shibboleth.php index 35bf9eb71..4bfec069d 100644 --- a/framework/Core/lib/Horde/Core/Auth/Shibboleth.php +++ b/framework/Core/lib/Horde/Core/Auth/Shibboleth.php @@ -24,7 +24,7 @@ class Horde_Core_Auth_Shibboleth extends Horde_Auth_Shibboleth public function validateAuth() { return !empty($_SERVER[$this->getParam('username_header')]) && - ($this->_removeScope($_SERVER[$this->getParam('username_header')]) == $GLOBALS['registry']->getAuth()); + ($this->_removeScope($_SERVER[$this->getParam('username_header')]) == $GLOBALS['registry']->getAuth('original')); } }