|
|
|
@ -48,9 +48,9 @@ class rcube_smb_password
|
|
|
|
|
$cmd = $bin . ' -r ' . escapeshellarg($host) . ' -s -U "' . escapeshellarg($username) . '" > ' . $tmpfile . ' 2>&1';
|
|
|
|
|
$handle = @popen($cmd, 'w');
|
|
|
|
|
|
|
|
|
|
fputs($handle, $currpass."\n");
|
|
|
|
|
fputs($handle, $newpass."\n");
|
|
|
|
|
fputs($handle, $newpass."\n");
|
|
|
|
|
fwrite($handle, $currpass."\n");
|
|
|
|
|
fwrite($handle, $newpass."\n");
|
|
|
|
|
fwrite($handle, $newpass."\n");
|
|
|
|
|
@pclose($handle);
|
|
|
|
|
$res = file($tmpfile);
|
|
|
|
|
unlink($tmpfile);
|
|
|
|
|