mixed File_SMBPasswd::delUser (string $user)
mixed File_SMBPasswd::delUser
This method deletes an existing user.
string $user - username to be deleted
mixed - Returns TRUE on success, PEAR_Error on failure.
Example 38-1. 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(); } ?>