File_SMBPasswd::verifyAccount() – Verifies the given account with the given plaintext passwords.


mixed File_SMBPasswd::verifyAccount ( string $user , string $pass )


This method verifies the given username and plaintext-password against the entry in the loaded smbpasswd file.


  • string $user - username to be verified

  • string $pass - the plaintext password

Return value

mixed - Returns TRUE on success, FALSE on failure.


Using File_SMBPasswd::verifyAccount()

require_once 'File/SMBPasswd.php';

$fh = new File_SMBPasswd('/usr/local/private/smbpasswd');
if (
$fh->verifyAccount('mbretter''MyPw')) {
"Account is valid";
} else {
"Account is in-valid";

Verifies the given account with the given encrypted passwords. (Previous) lock the smbpasswd file (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.