Class Passwd_Driver_composite

Description

The composite class chains other drivers together to change and a user's password stored on various backends.

$Horde: passwd/lib/Driver/composite.php,v 1.7.2.7 2009/01/06 15:25:23 jan Exp $

Copyright 2003-2009 The Horde Project (http://www.horde.org/)

See the enclosed file COPYING for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.php.

Located in /lib/Driver/composite.php (line 17)

Passwd_Driver
   |
   --Passwd_Driver_composite
Variable Summary
 array $_drivers
 boolean $_loaded
Method Summary
 Passwd_Driver_composite Passwd_Driver_composite ([array $params = array()])
 boolean changePassword (string $username, string $old_password, string $new_password)
 boolean _loadDrivers ()
Variables
array $_drivers = array() (line 24)

Hash of instantiated drivers.

boolean $_loaded = false (line 31)

State of the loaded drivers.

Inherited Variables

Inherited from Passwd_Driver

Passwd_Driver::$_errorstr
Passwd_Driver::$_params
Methods
Constructor Passwd_Driver_composite (line 38)

Constructs a new Passwd_Driver_composite object.

Passwd_Driver_composite Passwd_Driver_composite ([array $params = array()])
  • array $params: A hash containing chained drivers and their parameters.
changePassword (line 84)

Change the user's password.

  • return: True or false based on success of the change.
boolean changePassword (string $username, string $old_password, string $new_password)
  • string $username: The user for which to change the password.
  • string $old_password: The old (current) user password.
  • string $new_password: The new user password to set.

Redefinition of:
Passwd_Driver::changePassword()
Change the user's password.
_loadDrivers (line 52)

Instantiate configured drivers.

  • return: True on success or PEAR_Error on failure.
boolean _loadDrivers ()

Inherited Methods

Inherited From Passwd_Driver

 Passwd_Driver::Passwd_Driver()
 Passwd_Driver::changePassword()
 Passwd_Driver::comparePasswords()
 Passwd_Driver::encryptPassword()
 Passwd_Driver::factory()

Documentation generated on Sun, 30 Jan 2011 05:36:07 +0000 by phpDocumentor 1.4.3