Fix shibboleth authentication checking
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 25 Jan 2011 07:07:00 +0000 (00:07 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 25 Jan 2011 07:07:01 +0000 (00:07 -0700)
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).

framework/Core/lib/Horde/Core/Auth/Shibboleth.php

index 35bf9eb..4bfec06 100644 (file)
@@ -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'));
     }
 
 }