Class Passwd_Driver_poppassd

Description

The poppassd class attempts to change a user's password via a poppassd server.

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

Copyright 2000-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/poppassd.php (line 16)

Passwd_Driver
   |
   --Passwd_Driver_poppassd
Variable Summary
 resource $_fp
Method Summary
 Passwd_Driver_poppassd Passwd_Driver_poppassd ([array $params = array()])
 boolean changePassword (string $username, string $old_password, string $new_password)
 void _connect ()
 void _disconnect ()
 void _getPrompt ()
 void _sendCommand ( $cmd,  $arg)
Variables
resource $_fp (line 23)

Socket connection.

Inherited Variables

Inherited from Passwd_Driver

Passwd_Driver::$_errorstr
Passwd_Driver::$_params
Methods
Constructor Passwd_Driver_poppassd (line 30)

Constructs a new poppassd Passwd_Driver object.

Passwd_Driver_poppassd Passwd_Driver_poppassd ([array $params = array()])
  • array $params: A hash containing connection parameters.
changePassword (line 104)

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.
_connect (line 39)

Connect to the server

void _connect ()
_disconnect (line 52)

Disconnect from the server

void _disconnect ()
_getPrompt (line 63)

Parse a response from the server to see what it was

void _getPrompt ()
_sendCommand (line 85)

Send a command to the server.

void _sendCommand ( $cmd,  $arg)
  • $cmd
  • $arg

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:08 +0000 by phpDocumentor 1.4.3