Class Passwd_Driver_expectpecl

Description

The Passwd_expectpecl class provides an PECL expect implementation of the Passwd system.

$Horde: passwd/lib/Driver/expectpecl.php,v 1.5.2.1 2008/10/09 17:12:04 jan Exp $

Copyright 2006-2007 Duck <duck@obala.net>

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/expectpecl.php (line 17)

Passwd_Driver
   |
   --Passwd_Driver_expectpecl
Variable Summary
 resource $_stream
Method Summary
 boolean changePassword (string $user, string $old_password, string $new_password)
 boolean|PEAR_Error ctl (string $expect, string $error)
Variables
resource $_stream (line 24)

Expect connection handle.

Inherited Variables

Inherited from Passwd_Driver

Passwd_Driver::$_errorstr
Passwd_Driver::$_params
Methods
changePassword (line 70)

Changes the users password by executing an expect script.

  • return: True on success, false or error message on error.
boolean changePassword (string $user, string $old_password, string $new_password)
  • string $user: User ID.
  • string $old_password: Old password.
  • string $new_password: New password.

Redefinition of:
Passwd_Driver::changePassword()
Change the user's password.
ctl (line 34)

Handles expect communication.

  • return: True on success, PEAR_Error on failure
boolean|PEAR_Error ctl (string $expect, string $error)
  • string $expect: String to expect
  • string $error: Error message

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