Horde_Registry::appInit('ansel');
$groups = $injector->getInstance('Horde_Group');
-$auth = $injector->getInstance('Horde_Auth')->getAuth();
+$auth = $injector->getInstance('Horde_Auth_Factory')->getAuth();
$form = null;
$reload = false;
// Login to horde if username & password are set.
if (!empty($username) && !empty($password)) {
- $auth = $injector->getInstance('Horde_Auth')->getAuth();
+ $auth = $injector->getInstance('Horde_Auth_Factory')->getAuth();
if (!$auth->authenticate($username, array('password' => $password))) {
$cli->fatal(_("Username or password is incorrect."));
} else {
// Login to horde if username & password are set.
if (!empty($username) && !empty($password)) {
- $auth = $injector->getInstance('Horde_Auth')->getAuth();
+ $auth = $injector->getInstance('Horde_Auth_Factory')->getAuth();
if (!$auth->authenticate($username, array('password' => $password))) {
$error = _("Login is incorrect.");
Horde::logMessage($error, 'ERR');
// Login to horde if username & password are set.
if (!empty($username) && !empty($password)) {
- $auth = $injector->getInstance('Horde_Auth')->getAuth();
+ $auth = $injector->getInstance('Horde_Auth_Factory')->getAuth();
if (!$auth->authenticate($username, array('password' => $password))) {
$cli->fatal(_("Username or password is incorrect."));
} else {
$username = Horde_Util::getFormData('username');
$password = Horde_Util::getFormData('password');
if ($username && $password) {
- $auth = $injector->getInstance('Horde_Auth')->getAuth();
+ $auth = $injector->getInstance('Horde_Auth_Factory')->getAuth();
if ($auth->authenticate($username,
array('password' => $password))) {
$cmd = 'list';
// Login to horde if username & password are set and load module.
} elseif (!empty($username) && !empty($password)) {
require_once HORDE_BASE . '/lib/base.php';
- $auth = $injector->getInstance('Horde_Auth')->getAuth();
+ $auth = $injector->getInstance('Horde_Auth_Factory')->getAuth();
if (!$auth->authenticate($username, array('password' => $password))) {
$error = _("Login is incorrect.");
Horde::logMessage($error, 'ERR');
}
// Make sure auth backend allows passwords to be reset.
-$auth = $injector->getInstance('Horde_Auth')->getAuth();
+$auth = $injector->getInstance('Horde_Auth_Factory')->getAuth();
if (!$auth->hasCapability('resetpassword')) {
$notification->push(_("Cannot reset password automatically, contact your administrator."), 'horde.error');
$registry->authenticateFailure('folks');
require_once dirname(__FILE__) . '/tabs.php';
-$auth = $injector->getInstance('Horde_Auth')->getAuth();
+$auth = $injector->getInstance('Horde_Auth_Factory')->getAuth();
// Make sure signups are enabled before proceeding
if ($conf['signup']['allow'] !== true ||
$folks_authentication = 'none';
require_once dirname(__FILE__) . '/../lib/base.php';
-$auth = $injector->getInstance('Horde_Auth')->getAuth();
+$auth = $injector->getInstance('Horde_Auth_Factory')->getAuth();
$vars = Horde_Variables::getDefaultVariables();
$tabs = new Horde_Core_Ui_Tabs('what', $vars);
/*
// Make sure auth backend allows passwords to be updated.
-$auth = $injector->getInstance('Horde_Auth')->getAuth();
+$auth = $injector->getInstance('Horde_Auth_Factory')->getAuth();
if (!$auth->hasCapability('resetpassword')) {
$notification->push(_("Cannot update password, contact your administrator."), 'horde.error');
$registry->authenticateFailure('folks');
}
// Check if users exits
- $auth = $GLOBALS['injector']->getInstance('Horde_Auth')->getAuth();
+ $auth = $GLOBALS['injector']->getInstance('Horde_Auth_Factory')->getAuth();
if (!$auth->exists($user)) {
return PEAR::raiseError(sprintf(_("User \"%s\" does not exits"), $user));
}
}
// Check if users exits
- $auth = $GLOBALS['injector']->getInstance('Horde_Auth')->getAuth();
+ $auth = $GLOBALS['injector']->getInstance('Horde_Auth_Factory')->getAuth();
if (!$auth->exists($friend)) {
return PEAR::raiseError(sprintf(_("User \"%s\" does not exits"), $friend));
}
$shares = $injector->getInstance('Horde_Share_Factory')->getScope();
$groups = $injector->getInstance('Horde_Group');
-$auth = $injector->getInstance('Horde_Auth')->getAuth();
+$auth = $injector->getInstance('Horde_Auth_Factory')->getAuth();
$reload = false;
$actionID = Horde_Util::getFormData('actionID', 'edit');
$folks_authentication = 'none';
require_once dirname(__FILE__) . '/../lib/base.php';
-$auth = $injector->getInstance('Horde_Auth')->getAuth();
+$auth = $injector->getInstance('Horde_Auth_Factory')->getAuth();
if (!$GLOBALS['registry']->getAuth() &&
(!isset($_SERVER['PHP_AUTH_USER']) ||
!$auth->authenticate($_SERVER['PHP_AUTH_USER'], array('password' => isset($_SERVER['PHP_AUTH_PW']) ? $_SERVER['PHP_AUTH_PW'] : null)))) {
$folks_authentication = 'none';
require_once dirname(__FILE__) . '/../lib/base.php';
-$auth = $injector->getInstance('Horde_Auth')->getAuth();
+$auth = $injector->getInstance('Horde_Auth_Factory')->getAuth();
if (!$GLOBALS['registry']->getAuth() &&
(!isset($_SERVER['PHP_AUTH_USER']) ||
!$auth->authenticate($_SERVER['PHP_AUTH_USER'], array('password' => isset($_SERVER['PHP_AUTH_PW']) ? $_SERVER['PHP_AUTH_PW'] : null)))) {
$folks_authentication = 'none';
require_once dirname(__FILE__) . '/../lib/base.php';
-$auth = $injector->getInstance('Horde_Auth')->getAuth();
+$auth = $injector->getInstance('Horde_Auth_Factory')->getAuth();
if (!$GLOBALS['registry']->getAuth() &&
(!isset($_SERVER['PHP_AUTH_USER']) ||
!$auth->authenticate($_SERVER['PHP_AUTH_USER'], array('password' => isset($_SERVER['PHP_AUTH_PW']) ? $_SERVER['PHP_AUTH_PW'] : null)))) {
// Login to horde if username & password are set.
if (!empty($username) && !empty($password)) {
- $auth = $injector->getInstance('Horde_Auth')->getAuth();
+ $auth = $injector->getInstance('Horde_Auth_Factory')->getAuth();
if (!$auth->authenticate($username, array('password' => $password))) {
$error = _("Login is incorrect.");
Horde::logMessage($error, 'ERR');
{
$this->_logger->info('Horde_ActiveSync_Driver_Horde::logon attempt for: ' . $username);
parent::logon($username, $password, $domain);
- $auth = $GLOBALS['injector']->getInstance('Horde_Auth')->getAuth();
+ $auth = $GLOBALS['injector']->getInstance('Horde_Auth_Factory')->getAuth();
return $auth->authenticate($username, array('password' => $password));
}
*/
public function addUser($userId, $credentials)
{
- list($userId, $credentials) = $GLOBALS['injector']->getInstance('Horde_Auth')->getAuth()->runHook($userId, $credentials, 'preauthenticate', 'admin');
+ list($userId, $credentials) = $GLOBALS['injector']->getInstance('Horde_Auth_Factory')->getAuth()->runHook($userId, $credentials, 'preauthenticate', 'admin');
parent::addUser($userId, $credentials);
}
*/
public function updateUser($oldID, $newID, $credentials)
{
- $auth = $GLOBALS['injector']->getInstance('Horde_Auth')->getAuth();
+ $auth = $GLOBALS['injector']->getInstance('Horde_Auth_Factory')->getAuth();
list($oldID, $old_credentials) = $auth->runHook($oldID, $credentials, 'preauthenticate', 'admin');
if (isset($old_credentials['ldap'])) {
*/
public function removeUser($userId)
{
- list($userId, $credentials) = $GLOBALS['injector']->getInstance('Horde_Auth')->getAuth()->runHook($userId, array(), 'preauthenticate', 'admin');
+ list($userId, $credentials) = $GLOBALS['injector']->getInstance('Horde_Auth_Factory')->getAuth()->runHook($userId, array(), 'preauthenticate', 'admin');
parent::removeUser($userId, isset($credentials['ldap']) ? $credentials['ldap']['dn'] : null);
}
*/
public function addUser($userId, $credentials)
{
- list($userId, $credentials) = $GLOBALS['injector']->getInstance('Horde_Auth')->getAuth()->runHook($userId, $credentials, 'preauthenticate', 'admin');
+ list($userId, $credentials) = $GLOBALS['injector']->getInstance('Horde_Auth_Factory')->getAuth()->runHook($userId, $credentials, 'preauthenticate', 'admin');
parent::addUser($userId, $credentials);
}
*/
public function updateUser($oldID, $newID, $credentials)
{
- list($oldId, $credentials) = $GLOBALS['injector']->getInstance('Horde_Auth')->getAuth()->runHook($oldId, $credentials, 'preauthenticate', 'admin');
+ list($oldId, $credentials) = $GLOBALS['injector']->getInstance('Horde_Auth_Factory')->getAuth()->runHook($oldId, $credentials, 'preauthenticate', 'admin');
parent::updateUser($oldID, $newID, $credentials);
}
*/
public function removeUser($userId)
{
- list($userId, $credentials) = $GLOBALS['injector']->getInstance('Horde_Auth')->getAuth()->runHook($userId, array(), 'preauthenticate', 'admin');
+ list($userId, $credentials) = $GLOBALS['injector']->getInstance('Horde_Auth_Factory')->getAuth()->runHook($userId, array(), 'preauthenticate', 'admin');
parent::removeUser($userId, isset($credentials['ldap']) ? $credentials['ldap']['dn'] : null);
}
--- /dev/null
+<?php
+/**
+ * @category Horde
+ * @package Core
+ */
+class Horde_Core_Binder_AuthFactory implements Horde_Injector_Binder
+{
+ public function create(Horde_Injector $injector)
+ {
+ return new Horde_Core_Factory_Auth($injector);
+ }
+
+ public function equals(Horde_Injector_Binder $binder)
+ {
+ return false;
+ }
+
+}
/* Users permissions. */
$perm_val = $permission->getUserPermissions();
$this->_form->setSection('users', _("Individual Users"), Horde::img('user.png'), false);
- $auth = $GLOBALS['injector']->getInstance('Horde_Auth')->getAuth();
+ $auth = $GLOBALS['injector']->getInstance('Horde_Auth_Factory')->getAuth();
if ($auth->hasCapability('list')) {
/* The auth driver has list capabilities so set up an array which
* the matrix field type will recognise to set up an enum box for
'Horde_Ajax_Factory' => 'Horde_Core_Binder_AjaxFactory',
'Horde_Ajax_Imple_Factory' => 'Horde_Core_Binder_ImpleFactory',
'Horde_Alarm' => 'Horde_Core_Binder_Alarm',
- 'Horde_Auth' => 'Horde_Core_Binder_Auth',
+ 'Horde_Auth_Factory' => 'Horde_Core_Binder_AuthFactory',
// 'Horde_Browser' - initialized below
'Horde_Cache_Factory' => 'Horde_Core_Binder_CacheFactory',
'Horde_Core_Auth_Signup' => 'Horde_Core_Binder_AuthSignup',
* application auth != Horde admin auth. And there can *never* be
* non-SHOW access to an application that requires authentication. */
if (!$this->isAuthenticated(array('app' => $app, 'notransparent' => !empty($params['notransparent']))) &&
- $GLOBALS['injector']->getInstance('Horde_Auth')->getAuth($app)->requireAuth() &&
+ $GLOBALS['injector']->getInstance('Horde_Auth_Factory')->getAuth($app)->requireAuth() &&
($perms != Horde_Perms::SHOW)) {
return false;
}
if (!$this->getAuth()) {
$this->getCleanSession();
}
- return $GLOBALS['injector']->getInstance('Horde_Auth')->getAuth($app)->transparent();
+ return $GLOBALS['injector']->getInstance('Horde_Auth_Factory')->getAuth($app)->transparent();
}
return false;
if (!isset($options['reason'])) {
// TODO: This only returns the error for Horde-wide
// authentication, not for application auth.
- $options['reason'] = $GLOBALS['injector']->getInstance('Horde_Auth')->getAuth()->getError();
+ $options['reason'] = $GLOBALS['injector']->getInstance('Horde_Auth_Factory')->getAuth()->getError();
}
if (empty($options['app']) ||
$params['logout_reason'] = $options['reason'];
if ($options['reason'] == Horde_Auth::REASON_MESSAGE) {
$params['logout_msg'] = empty($options['msg'])
- ? $GLOBALS['injector']->getInstance('Horde_Auth')->getAuth()->getError(true)
+ ? $GLOBALS['injector']->getInstance('Horde_Auth_Factory')->getAuth()->getError(true)
: $options['msg'];
}
}
*/
public function checkExistingAuth()
{
- $auth = $GLOBALS['injector']->getInstance('Horde_Auth')->getAuth();
+ $auth = $GLOBALS['injector']->getInstance('Horde_Auth_Factory')->getAuth();
if (!empty($GLOBALS['conf']['auth']['checkip']) &&
!empty($_SESSION['horde_auth']['remoteAddr']) &&
<dir name="Binder">
<file name="AjaxFactory.php" role="php" />
<file name="Alarm.php" role="php" />
- <file name="Auth.php" role="php" />
+ <file name="AuthFactory.php" role="php" />
<file name="AuthSignup.php" role="php" />
<file name="CacheFactory.php" role="php" />
<file name="Crypt.php" role="php" />
<install as="Horde/Core/Autoloader/Callback/Nls.php" name="lib/Horde/Core/Autoloader/Callback/Nls.php" />
<install as="Horde/Core/Binder/AjaxFactory.php" name="lib/Horde/Core/Binder/AjaxFactory.php" />
<install as="Horde/Core/Binder/Alarm.php" name="lib/Horde/Core/Binder/Alarm.php" />
- <install as="Horde/Core/Binder/Auth.php" name="lib/Horde/Core/Binder/Auth.php" />
+ <install as="Horde/Core/Binder/AuthFactory.php" name="lib/Horde/Core/Binder/AuthFactory.php" />
<install as="Horde/Core/Binder/AuthSignup.php" name="lib/Horde/Core/Binder/AuthSignup.php" />
<install as="Horde/Core/Binder/CacheFactory.php" name="lib/Horde/Core/Binder/CacheFactory.php" />
<install as="Horde/Core/Binder/Crypt.php" name="lib/Horde/Core/Binder/Crypt.php" />
$calendar_user = $conf['kolab']['filter']['calendar_id'] . '@' . $domain;
/* Load the authentication libraries */
- $auth = $GLOBALS['injector']->getInstance('Horde_Auth')->getAuth(isset($conf['auth']['driver']) ? null : 'kolab');
+ $auth = $GLOBALS['injector']->getInstance('Horde_Auth_Factory')->getAuth(isset($conf['auth']['driver']) ? null : 'kolab');
$authenticated = $auth->authenticate($calendar_user,
array('password' => $conf['kolab']['filter']['calendar_pass']),
false);
}
// @TODO: inject this
- $auth = $GLOBALS['injector']->getInstance('Horde_Auth')->getAuth();
+ $auth = $GLOBALS['injector']->getInstance('Horde_Auth_Factory')->getAuth();
$serverVars = $this->_request->getServerVars();
if ($serverVars['PHP_AUTH_USER']) {
$user = $serverVars['PHP_AUTH_USER'];
*/
function check_auth($type, $username, $password)
{
- $auth = $GLOBALS['injector']->getInstance('Horde_Auth')->getAuth();
+ $auth = $GLOBALS['injector']->getInstance('Horde_Auth_Factory')->getAuth();
return $auth->authenticate($username, array('password' => $password));
}
*/
function _checkAuthentication($username, $password)
{
- $auth = $GLOBALS['injector']->getInstance('Horde_Auth')->getAuth();
+ $auth = $GLOBALS['injector']->getInstance('Horde_Auth_Factory')->getAuth();
return $auth->authenticate($username, array('password' => $password))
? $GLOBALS['registry']->getAuth()
: false;
}
/* Get an Auth object. */
- $auth = $GLOBALS['injector']->getInstance('Horde_Auth')->getAuth();
+ $auth = $GLOBALS['injector']->getInstance('Horde_Auth_Factory')->getAuth();
/* Make this user an admin for the time beeing to allow deletion of
* user data. */
{
/* Get an Auth object. */
try {
- $auth = $GLOBALS['injector']->getInstance('Horde_Auth')->getAuth();
+ $auth = $GLOBALS['injector']->getInstance('Horde_Auth_Factory')->getAuth();
} catch (Horde_Exception $e) {
// TODO
}
$criteria = array();
if ($perms->hasPermission('hermes:review', $GLOBALS['registry']->getAuth(), Horde_Perms::SHOW)) {
if (!empty($info['employees'])) {
- $auth = $GLOBALS['injector']->getInstance('Horde_Auth')->getAuth();
+ $auth = $GLOBALS['injector']->getInstance('Horde_Auth_Factory')->getAuth();
if (!$auth->hasCapability('list')) {
$criteria['employee'] = explode(',', $info['employees']);
} else {
$employees = array();
require_once 'Horde/Identity.php';
- $auth = $GLOBALS['injector']->getInstance('Horde_Auth')->getAuth();
+ $auth = $GLOBALS['injector']->getInstance('Horde_Auth_Factory')->getAuth();
$users = $auth->listUsers();
if (!is_a($users, 'PEAR_Error')) {
foreach ($users as $user) {
*/
public static function getEmployeesType($enumtype = 'multienum')
{
- $auth = $GLOBALS['injector']->getInstance('Horde_Auth')->getAuth();
+ $auth = $GLOBALS['injector']->getInstance('Horde_Auth_Factory')->getAuth();
if (!$auth->hasCapability('list')) {
return array('text', array());
}
Horde_Registry::appInit('horde', array('admin' => true));
$groups = $injector->getInstance('Horde_Group');
-$auth = $injector->getInstance('Horde_Auth')->getAuth();
+$auth = $injector->getInstance('Horde_Auth_Factory')->getAuth();
$form = null;
$reload = false;
Horde_Registry::appInit('horde', array('authentication' => 'none'));
// Make sure signups are enabled before proceeding
-$auth = $injector->getInstance('Horde_Auth')->getAuth();
+$auth = $injector->getInstance('Horde_Auth_Factory')->getAuth();
if ($conf['signup']['allow'] !== true ||
!$auth->hasCapability('add')) {
throw new Horde_Exception(_("User Registration has been disabled for this site."));
require_once dirname(__FILE__) . '/../lib/Application.php';
Horde_Registry::appInit('horde', array('admin' => true));
-$auth = $injector->getInstance('Horde_Auth')->getAuth();
+$auth = $injector->getInstance('Horde_Auth_Factory')->getAuth();
if ($conf['signup']['allow'] && $conf['signup']['approve']) {
$signup = $injector->getInstance('Horde_Core_Auth_Signup');
/* Hide appropriate prefGroups. */
try {
- $GLOBALS['injector']->getInstance('Horde_Auth')->getAuth()->hasCapability('update');
+ $GLOBALS['injector']->getInstance('Horde_Auth_Factory')->getAuth()->hasCapability('update');
} catch (Horde_Exception $e) {
$ui->suppressGroups[] = 'forgotpass';
}
}
/* Get an Auth object. */
-$auth = $injector->getInstance('Horde_Auth')->getAuth(($is_auth && $vars->app) ? $vars->app : null);
+$auth = $injector->getInstance('Horde_Auth_Factory')->getAuth(($is_auth && $vars->app) ? $vars->app : null);
/* Build the list of necessary login parameters. */
$loginparams = array(
require_once dirname(__FILE__) . '/../lib/Application.php';
Horde_Registry::appInit('horde', array('authentication' => 'none'));
-$auth = $injector->getInstance('Horde_Auth')->getAuth();
+$auth = $injector->getInstance('Horde_Auth_Factory')->getAuth();
// Check for COOKIE auth.
if (empty($_COOKIE['user']) ||
require_once dirname(__FILE__) . '/../lib/Application.php';
Horde_Registry::appInit('horde', array('authentication' => 'none'));
-$auth = $injector->getInstance('Horde_Auth')->getAuth();
+$auth = $injector->getInstance('Horde_Auth_Factory')->getAuth();
// Check for GET auth.
if (empty($_GET['user']) ||
require_once dirname(__FILE__) . '/../lib/Application.php';
Horde_Registry::appInit('horde');
-$auth = $injector->getInstance('Horde_Auth')->getAuth();
+$auth = $injector->getInstance('Horde_Auth_Factory')->getAuth();
// Check for HTTP auth.
if (empty($_SERVER['PHP_AUTH_USER']) ||
Horde_Registry::appInit('horde', array('nologintasks' => true));
// Make sure auth backend allows passwords to be reset.
-$auth = $injector->getInstance('Horde_Auth')->getAuth();
+$auth = $injector->getInstance('Horde_Auth_Factory')->getAuth();
if (!$auth->hasCapability('update')) {
$notification->push(_("Changing your password is not supported with the current configuration. Contact your administrator."), 'horde.error');
Horde::getServiceLink('login')->add('url', Horde_Util::getFormData('url'))->redirect();
Horde_Registry::appInit('horde', array('authentication' => 'none'));
// Make sure auth backend allows passwords to be reset.
-$auth = $injector->getInstance('Horde_Auth')->getAuth();
+$auth = $injector->getInstance('Horde_Auth_Factory')->getAuth();
if (!$auth->hasCapability('resetpassword')) {
$notification->push(_("Cannot reset password automatically, contact your administrator."), 'horde.error');
Horde::getServiceLink('login')->add('url', Horde_Util::getFormData('url'))->redirect();
$app = Horde_Util::getFormData('app');
$shares = $injector->getInstance('Horde_Share_Factory')->getScope($app);
$groups = $injector->getInstance('Horde_Group');
-$auth = $injector->getInstance('Horde_Auth')->getAuth();
+$auth = $injector->getInstance('Horde_Auth_Factory')->getAuth();
$help = $registry->hasMethod('shareHelp', $app)
? $registry->callByPackage($app, 'shareHelp')
: null;
require_once dirname(__FILE__) . '/lib/Application.php';
Horde_Registry::appInit('horde', array('authentication' => 'none'));
-$auth = $injector->getInstance('Horde_Auth')->getAuth();
+$auth = $injector->getInstance('Horde_Auth_Factory')->getAuth();
// Make sure signups are enabled before proceeding
if ($conf['signup']['allow'] !== true ||
$this->registry = &$registry;
$this->notification = &$notification;
- $this->auth = $GLOBALS['injector']->getInstance('Horde_Auth')->getAuth();
+ $this->auth = $GLOBALS['injector']->getInstance('Horde_Auth_Factory')->getAuth();
$this->conf = Horde::loadConfiguration('conf.php', 'conf');
$this->objects = Horde::loadConfiguration('objects.php', 'objects');
/* Authenticate the user if possible. */
if ($this->_argv->user) {
- $auth = $GLOBALS['injector']->getInstance('Horde_Auth')->getAuth();
+ $auth = $GLOBALS['injector']->getInstance('Horde_Auth_Factory')->getAuth();
if (!$auth->authenticate($this->_argv->user,
array('password' => $this->_argv->pass))) {
throw new InvalidArgumentException('Failed to log in!');
sprintf(_("Permission denied for the requested feed (%s)."),
htmlspecialchars($calendar)));
} else {
- $auth = $injector->getInstance('Horde_Auth')->getAuth();
+ $auth = $injector->getInstance('Horde_Auth_Factory')->getAuth();
if (isset($_SERVER['PHP_AUTH_USER'])) {
$user = $_SERVER['PHP_AUTH_USER'];
$pass = $_SERVER['PHP_AUTH_PW'];
*/
public static function readPermsForm($share)
{
- $auth = $GLOBALS['injector']->getInstance('Horde_Auth')->getAuth();
+ $auth = $GLOBALS['injector']->getInstance('Horde_Auth_Factory')->getAuth();
$perm = $share->getPermission();
$errors = array();
$shares = $injector->getInstance('Horde_Share_Factory')->getScope();
$groups = $injector->getInstance('Horde_Group');
-$auth = $injector->getInstance('Horde_Auth')->getAuth();
+$auth = $injector->getInstance('Horde_Auth_Factory')->getAuth();
$reload = false;
$actionID = Horde_Util::getFormData('actionID', 'edit');
<?php
-$auth = $GLOBALS['injector']->getInstance('Horde_Auth')->getAuth();
+$auth = $GLOBALS['injector']->getInstance('Horde_Auth_Factory')->getAuth();
$horde_groups = $GLOBALS['injector']->getInstance('Horde_Group');
$groups = array();
// get the list of all users if we can. If your site
// has a *large* number of users, you may want to comment
// out this section to avoid unnecessary overhead.
-$auth = $injector->getInstance('Horde_Auth')->getAuth();
+$auth = $injector->getInstance('Horde_Auth_Factory')->getAuth();
if ($auth->hasCapability('list')) {
$users = $auth->listUsers();
}
global $conf, $whups_driver;
- $auth = $GLOBALS['injector']->getInstance('Horde_Auth')->getAuth();
+ $auth = $GLOBALS['injector']->getInstance('Horde_Auth_Factory')->getAuth();
if ($auth->hasCapability('list')) {
$queue = $vars->get('queue');
$current = $whups_driver->getQueueUsers($queue);
*/
static protected function _findAuthUser($from)
{
- $auth = $GLOBALS['injector']->getInstance('Horde_Auth')->getAuth();
+ $auth = $GLOBALS['injector']->getInstance('Horde_Auth_Factory')->getAuth();
if ($auth->hasCapability('list')) {
foreach ($auth->listUsers() as $user) {
// Login to horde if username & password are set.
if (!empty($username) && !empty($password)) {
- $auth = $injector->getInstance('Horde_Auth')->getAuth();
+ $auth = $injector->getInstance('Horde_Auth_Factory')->getAuth();
if (!$auth->authenticate($username, array('password' => $password))) {
$error = _("Login is incorrect.");
Horde::logMessage($error, 'ERR');