File_SMBPasswd::delAccount()

File_SMBPasswd::delAccount() – deletes an existing account.

Synopsis

mixed File_SMBPasswd::delAccount ( string $name )

Description

This method deletes an existing account.

Parameter

  • string $name - account name to be deleted (username or machinename)

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->delAccount('mbretter');
if (
PEAR::isError($status)) {
    
// handle errors
} else {
    
$fh->save();
}

?>
modify an exsting account with the given plaintext-password. (Previous) deletes an existing user. (Next)
Last updated: Sat, 20 Sep 2014 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

User Notes:

There are no user contributed notes for this page.