diff --git a/src/Native/NativeShare.php b/src/Native/NativeShare.php index bc734e3..544022e 100644 --- a/src/Native/NativeShare.php +++ b/src/Native/NativeShare.php @@ -68,7 +68,7 @@ class NativeShare extends AbstractShare { private function buildUrl($path) { $this->verifyPath($path); - $url = sprintf('smb://%s/%s', $this->server->getHost(), $this->name); + $url = str_replace('[USER]', $this->server->getAuth()->getUserName(), sprintf('smb://%s/%s', $this->server->getHost(), $this->name)); if ($path) { $path = trim($path, '/'); $url .= '/';