PHP Class Passwd_Driver_Smbpasswd, horde

Author: Rene Lund Jensen ([email protected])
Inheritance: extends Passwd_Driver
Show file Open project: horde/horde

Protected Properties

Property Type Description
$_fp resource Socket connection resource.

Public Methods

Method Description
__construct ( array $params = [] )

Protected Methods

Method Description
_changePassword ( $user, $oldpass, $newpass )
_connect ( string $user, string $tmpfile ) Connects a pipe to the sambaserver using the smbpasswd program.
_disconnect ( ) Disconnects the pipe to the sambaserver.
_sendCommand ( string $cmd ) Sends a string to the waiting sambaserver.

Method Details

__construct() public method

public __construct ( array $params = [] )
$params array

_changePassword() protected method

protected _changePassword ( $user, $oldpass, $newpass )

_connect() protected method

Connects a pipe to the sambaserver using the smbpasswd program.
protected _connect ( string $user, string $tmpfile )
$user string The user to change the password for
$tmpfile string The name of a temporary file in which to write output.

_disconnect() protected method

Disconnects the pipe to the sambaserver.
protected _disconnect ( )

_sendCommand() protected method

Sends a string to the waiting sambaserver.
protected _sendCommand ( string $cmd )
$cmd string The string to send to the server.

Property Details

$_fp protected property

Socket connection resource.
protected resource $_fp
return resource