mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
make workgroup explicit
This commit is contained in:
parent
7797d463d7
commit
bdda31975d
8 changed files with 16 additions and 21 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue