Skip to content

Commit

Permalink
Must set auth in the registry for X509 transparent auth.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Mar 4, 2015
1 parent aa54aba commit 122bdec
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions framework/Core/lib/Horde/Core/ActiveSync/Driver.php
Expand Up @@ -202,6 +202,7 @@ public function authenticate($username, $password, $domain = null)
$injector->getInstance('Horde_Log_Logger')->notice(sprintf(
'Access granted based on transparent authentication of user %s, but ActiveSync client is requesting access for %s.',
$GLOBALS['registry']->getAuth(), $username));
$GLOBALS['registry']->clearAuth();
return false;
}
$this->_logger->info(sprintf(
Expand Down
9 changes: 9 additions & 0 deletions framework/Core/lib/Horde/Core/Auth/X509.php
Expand Up @@ -25,4 +25,13 @@ protected function _validate($certificate)
return true;
}

public function transparent()
{
if (parent::transparent()) {
$GLOBALS['registry']->setAuth($this->getCredential('userId'), $this->getCredential('credentials'));
return true;
}

return false;
}
}

0 comments on commit 122bdec

Please sign in to comment.