PHP Класс Passwd_Driver_Smbpasswd, horde

Автор: Rene Lund Jensen ([email protected])
Наследование: extends Passwd_Driver
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$_fp resource Socket connection resource.

Открытые методы

Метод Описание
__construct ( array $params = [] )

Защищенные методы

Метод Описание
_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.

Описание методов

__construct() публичный Метод

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

_changePassword() защищенный Метод

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

_connect() защищенный Метод

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() защищенный Метод

Disconnects the pipe to the sambaserver.
protected _disconnect ( )

_sendCommand() защищенный Метод

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

Описание свойств

$_fp защищенное свойство

Socket connection resource.
protected resource $_fp
Результат resource