File_SMBPasswd::lock()

File_SMBPasswd::lock() – lock the smbpasswd file

Synopsis

mixed File_SMBPasswd::lock ( )

Description

lock the smbpasswd file.

Return value

mixed - Returns TRUE on success, PEAR_Error on failure.

Note

This function can not be called statically.

Example

Using File_SMBPasswd::lock()

<?php
require_once('File/SMBPasswd.php');

$fh = new File_SMBPasswd('/usr/local/private/smbpasswd');
$status $fh->lock();

if (
PEAR::isError($status)) {
  
// handle errors
} else {
  
// continue processing
}
  
?>
Verifies the given account with the given plaintext passwords. (Previous) unlock 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.