<?php
require_once 'File/SMBPasswd.php';
// add user mbretter
$fh = new File_SMBPasswd('/usr/local/private/smbpasswd');
$fh->load();
$status = $fh->addUser(
'mbretter',
1004,
'MyPw',
'Michael Bretterklieber');
if (PEAR::isError($status)) {
// handle errors
} else {
// continue processing
$fh->save();
}
?> |