From: Michael M Slusarz Date: Mon, 31 May 2010 21:43:58 +0000 (-0600) Subject: Removed Krb5 auth driver X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=e3009503288f8d570c09bed7263d9d309a0e16f9;p=horde.git Removed Krb5 auth driver --- diff --git a/framework/Auth/lib/Horde/Auth/Krb5.php b/framework/Auth/lib/Horde/Auth/Krb5.php deleted file mode 100644 index a9046886c..000000000 --- a/framework/Auth/lib/Horde/Auth/Krb5.php +++ /dev/null @@ -1,72 +0,0 @@ - - * @package Horde_Auth - */ -class Horde_Auth_Krb5 extends Horde_Auth_Base -{ - /** - * Constructor. - * - * @param array $params Not used. - * - * @throws Horde_Auth_Exception - */ - public function __construct($params = array()) - { - if (!Horde_Util::extensionExists('krb5')) { - throw new Horde_Auth_Exception(_("Horde_Auth_Krb5: Required krb5 extension not found.")); - } - - parent::__construct($params); - } - - /** - * Find out if a set of login credentials are valid. - * - * @param string $userId The userId to check. - * @param array $credentials An array of login credentials. - * For kerberos, this must contain a password - * entry. - * - * @throws Horde_Auth_Exception - */ - protected function _authenticate($userId, $credentials) - { - if (empty($credentials['password'])) { - throw new Horde_Auth_Exception('', Horde_Auth::REASON_BADLOGIN); - } - - $result = krb5_login($userId, $credentials['password']); - - switch ($result) { - case KRB5_OK: - return; - - case KRB5_BAD_PASSWORD: - throw new Horde_Auth_Exception(_("Bad kerberos password.")); - - case KRB5_BAD_USER: - throw new Horde_Auth_Exception(_("Bad kerberos username.")); - - default: - throw new Horde_Auth_Exception(_("Kerberos server rejected authentication.")); - } - } - -} diff --git a/framework/Auth/package.xml b/framework/Auth/package.xml index db2039f1c..e18dae5d9 100644 --- a/framework/Auth/package.xml +++ b/framework/Auth/package.xml @@ -30,7 +30,8 @@ http://pear.php.net/dtd/package-2.0.xsd"> beta LGPL - * Moved signup code to horde/Core. + * Removed Krb5 driver. + * Moved signup code to horde/Core. * Replaced Horde_Auth::addHook() and Horde_Auth::removeHook() with Horde_Auth::convertUsername(). * Add ability to retrieve app-specific credentials via @@ -61,7 +62,6 @@ http://pear.php.net/dtd/package-2.0.xsd"> - @@ -171,7 +171,6 @@ http://pear.php.net/dtd/package-2.0.xsd"> - diff --git a/horde/config/conf.xml b/horde/config/conf.xml index dd4b5b373..e7e3e9708 100644 --- a/horde/config/conf.xml +++ b/horde/config/conf.xml @@ -299,8 +299,6 @@ - -