make workgroup explicit

This commit is contained in:
Robin Appelman 2018-03-29 17:20:08 +02:00
commit bdda31975d
8 changed files with 16 additions and 21 deletions

View file

@ -6,11 +6,12 @@ use Icewind\SMB\Server;
require('vendor/autoload.php');
$host = 'localhost';
$user = 'test\test';
$user = 'test';
$workgroup = 'test';
$password = 'test';
$share = 'test';
$auth = new \Icewind\SMB\BasicAuth($user, $password);
$auth = new \Icewind\SMB\BasicAuth($user, $workgroup, $password);
$serverFactory = new \Icewind\SMB\ServerFactory();
$server = $serverFactory->createServer($host, $auth);