Skip to content

Commit

Permalink
Must clear the isauth cache when resetting authentication parameter.
Browse files Browse the repository at this point in the history
This fixes the "User is not authorized for IMP" issue when accessing
IMP data via RPC, and using an auth backend other than Application.
Since RPC first initializes Horde with authentication => none,
when the notification system is initialized, Horde_Registry::_cache['isauth']
is populated when no authentication is present. Further on in the script,
after proper authentication is made, Horde_Registry::isAuthenticated will fail
since it still contains the results of the authentication attempt when authentication
was not available.
  • Loading branch information
mrubinsk committed Mar 2, 2014
1 parent 187b8a2 commit 9d11efa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions framework/Core/lib/Horde/Registry.php
Expand Up @@ -593,6 +593,7 @@ public function setAuthenticationSetting($authentication)
{
$this->_args['authentication'] = $authentication;
$this->_cache['cfile'] = $this->_cache['ob'] = array();
$this->_cache['isauth'] = array();
$this->_appsInit = array();
while ($this->popApp());
}
Expand Down

0 comments on commit 9d11efa

Please sign in to comment.