mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
add support for anonymous auth
This commit is contained in:
parent
526f14707e
commit
f4d8bca8fa
4 changed files with 55 additions and 2 deletions
|
|
@ -35,6 +35,14 @@ $share = $server->getShare('test');
|
|||
The server factory will automatically pick between the `smbclient` and `libsmbclient-php`
|
||||
based backend depending on what is available.
|
||||
|
||||
### Using anonymous authentication ###
|
||||
|
||||
```php
|
||||
$serverFactory = new ServerFactory();
|
||||
$auth = new AnonymousAuth();
|
||||
$server = $serverFactory->createServer('localhost', $auth);
|
||||
```
|
||||
|
||||
### Using kerberos authentication ###
|
||||
|
||||
```php
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue