[ Index ]
 

Code source de Horde 3.1.3

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

title

Body

[fermer]

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

(pas de description)

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

Définit 1 class

Auth_passwd:: (7 méthodes):
  Auth_passwd()
  _authenticate()
  listUsers()
  addUser()
  modUser()
  delUser()
  close()


Classe: Auth_passwd  - X-Ref

The Auth_passwd:: class provides a passwd-file implementation of
the Horde authentication system.

Optional parameters:<pre>
'filename'  The passwd file to use.
DEFAULT: /etc/passwd
'lock'      Should we lock the passwd file? (boolean)
DEFAULT: false</pre>


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

Copyright 1997-2006 Rasmus Lerdorf <rasmus@php.net>
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_passwd($params = array()   X-Ref
Constructs a new Passwd authentication object.

param: array $params  A hash containing connection parameters.

_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  An array of login credentials. For MCAL,
return: boolean  Whether or not the credentials are valid.

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

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

addUser($user, $pass, $cvsuser = '')   X-Ref
Adds a user.

param: string $user     New user ID.
param: string $pass     Password for new user.
param: string $cvsuser  CVS user id (needed for pserver passwd files).
return: boolean  Returns true or PEAR_Error if the user already

modUser($user, $pass, $cvsuser = '')   X-Ref
Modifies a user.

param: string $user     User ID.
param: string $pass     Password for new user.
param: string $cvsuser  CVS user id (needed for pserver passwd files).
return: boolean  Returns true or PEAR_Error if the user doesn't

delUser($user)   X-Ref
Deletes a user.

param: string $user  User ID.
return: boolean  Returns true or PEAR_Error if the user doesn't exist.

close()   X-Ref
Writes changes to passwd file and unlocks it.  Takes no arguments and
has no defined return value.




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