File_SMBPasswd::delUser()

File_SMBPasswd::delUser() – deletes an existing user.

Synopsis

mixed File_SMBPasswd::delUser ( string $user )

Description

This method deletes an existing user.

Parameter

  • string $user - username to be deleted

Return value

mixed - Returns TRUE on success, PEAR_Error on failure.

Example

Using File_SMBPasswd::delAccount()

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

// delete user mbretter
$fh = new File_SMBPasswd('/usr/local/private/smbpasswd');
$fh->load();
$status $fh->delUser('mbretter');
if (
PEAR::isError($status)) {
    
// handle errors
} else {
    
$fh->save();
}

?>
deletes an existing account. (Previous) Verifies the given account with the given encrypted passwords. (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.