[ Index ]
 

Code source de Horde 3.1.3

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/Horde/Auth/ -> composite.php (sommaire)

(pas de description)

Poids: 291 lignes (9 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

Auth_composite:: (13 méthodes):
  Auth_composite()
  _setParams()
  getParam()
  _authenticate()
  hasCapability()
  transparent()
  _getLoginScreen()
  addUser()
  updateUser()
  removeUser()
  listUsers()
  exists()
  _loadDriver()


Classe: Auth_composite  - X-Ref

The Auth_composite class provides a wrapper around
application-provided Horde authentication which fits inside the
Horde Auth:: API.

Required parameters:<pre>
None.</pre>


$Horde: framework/Auth/Auth/composite.php,v 1.26.10.10 2006/08/14 02:48:48 chuck Exp $

Copyright 2002-2006 Chuck Hagenbuch <chuck@horde.org>

See the enclosed file COPYING for license information (LGPL). If you
did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.

Auth_composite($params = array()   X-Ref
Constructs a new Composite authentication object.

param: array $params  A hash containing connection parameters.

_setParams($params)   X-Ref
Set connection parameters.

param: array $params  A hash containing connection parameters.

getParam($param)   X-Ref
Return the named parameter for the current auth driver.

param: string $param  The parameter to fetch.
return: string  The parameter's value.

_authenticate($userId, $credentials)   X-Ref
Find out if a set of login credentials are valid.

param: string $userId      The userId to check.
param: array $credentials  The credentials to use.
return: boolean  Whether or not the credentials are valid.

hasCapability($capability)   X-Ref
Query the current Auth object to find out if it supports the given
capability.

param: string $capability  The capability to test for.
return: boolean  Whether or not the capability is supported.

transparent()   X-Ref
Automatic authentication: Find out if the client matches an allowed IP
block.

return: boolean  Whether or not the client is allowed.

_getLoginScreen($app = 'horde', $url = '')   X-Ref
Return the URI of the login screen for this authentication object.

param: string $app  The application to use.
param: string $url  The URL to redirect to after login.
return: string  The login screen URI.

addUser($userId, $credentials)   X-Ref
Add a set of authentication credentials.

param: string $userId       The userId to add.
param: array  $credentials  The credentials to use.
return: mixed        True on success or a PEAR_Error object on failure.

updateUser($oldID, $newID, $credentials)   X-Ref
Update a set of authentication credentials.

param: string $oldID       The old userId.
param: string $newID       The new userId.
param: array $credentials  The new credentials
return: mixed  True on success or a PEAR_Error object on failure.

removeUser($userId)   X-Ref
Delete a set of authentication credentials.

param: string $userId  The userId to delete.
return: mixed  True on success or a PEAR_Error object on failure.

listUsers()   X-Ref
List all users in the system.

return: mixed  The array of userIds, or a PEAR_Error object on failure.

exists($userId)   X-Ref
Checks if a userId exists in the system.

param: string $userId  User ID to check
return: boolean  Whether or not the userId already exists.

_loadDriver($driver)   X-Ref
Loads one of the drivers in our configuration array, if it isn't already
loaded.

param: string $driver  The name of the driver to load.
return: boolean True if driver successfully initializes.



Généré le : Sun Feb 25 18:01:28 2007 par Balluche grâce à PHPXref 0.7