Class Passwd_Driver_smbpasswd

Description

The smbpassd class attempts to change a user's password on a samba server.

$Horde: passwd/lib/Driver/smbpasswd.php,v 1.22.2.5 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/smbpasswd.php (line 15)

Passwd_Driver
   |
   --Passwd_Driver_smbpasswd
Variable Summary
 resource $_fp
Method Summary
 Passwd_Driver_smbpasswd Passwd_Driver_smbpasswd ([array $params = array()])
 mixed changePassword (string $username, string $old_password, string $new_password)
 mixed _connect (string $user, string $tmpfile)
 void _disconnect ()
 void _sendCommand (string $cmd)
Variables
resource $_fp (line 22)

Socket connection resource.

Inherited Variables

Inherited from Passwd_Driver

Passwd_Driver::$_errorstr
Passwd_Driver::$_params
Methods
Constructor Passwd_Driver_smbpasswd (line 29)

Constructs a new smbpasswd Passwd_Driver object.

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

Changes the user's password.

  • return: True or PEAR_Error based on success of the change.
mixed 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 44)

Connects a pipe to the sambaserver using the smbpasswd program.

  • return: True on success, PEAR_Error on failure
mixed _connect (string $user, string $tmpfile)
  • string $user: The user to change the password for
  • string $tmpfile: The name of a temporary file in which to write output.
_disconnect (line 66)

Disconnects the pipe to the sambaserver.

void _disconnect ()
_sendCommand (line 76)

Sends a string to the waiting sambaserver.

void _sendCommand (string $cmd)
  • string $cmd: The string to send to the server.

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