mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
improve support for workgroups/domains
This commit is contained in:
parent
25a76128d5
commit
33ab10cc4d
4 changed files with 43 additions and 19 deletions
|
|
@ -24,12 +24,7 @@ class NativeServer extends Server {
|
|||
}
|
||||
|
||||
protected function connect() {
|
||||
$user = $this->getUser();
|
||||
$workgroup = null;
|
||||
if (strpos($user, '/')) {
|
||||
list($workgroup, $user) = explode('/', $user);
|
||||
}
|
||||
$this->state->init($workgroup, $user, $this->getPassword());
|
||||
$this->state->init($this->getWorkgroup(), $this->getUser(), $this->getPassword());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue