improve support for workgroups/domains

This commit is contained in:
Robin Appelman 2015-08-13 16:17:46 +02:00
commit 33ab10cc4d
4 changed files with 43 additions and 19 deletions

View file

@ -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());
}
/**