File_SMBPasswd::verifyAccount() -- Verifies the given account with the given plaintext passwords.
Описание
This method verifies the given username and plaintext-password against the entry in the loaded
smbpasswd file.
Возвращаемое значение
mixed - Возвращает TRUE в случае успеха и FALSE при неудаче.
Пример
Пример 39-1. Using File_SMBPasswd::verifyAccount() <?php
require_once 'File/SMBPasswd.php';
$fh = new File_SMBPasswd('/usr/local/private/smbpasswd');
$fh->load();
if ($fh->verifyAccount('mbretter', 'MyPw')) {
echo "Account is valid";
} else {
echo "Account is in-valid";
}
?> |
|
HIVE: All information for read only. Please respect copyright! |
|