add support for anonymous auth

This commit is contained in:
Robin Appelman 2018-03-27 17:58:11 +02:00
commit f4d8bca8fa
4 changed files with 55 additions and 2 deletions

View file

@ -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