mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
Merge pull request #30812 from nextcloud/backport/30795/stable22
This commit is contained in:
commit
067781e55b
1 changed files with 2 additions and 4 deletions
|
|
@ -108,14 +108,12 @@ class SMB extends Backend {
|
|||
if (empty($realm)) {
|
||||
$realm = 'WORKGROUP';
|
||||
}
|
||||
$userPart = $matches[1];
|
||||
$domainPart = $matches[2];
|
||||
if (count($matches) === 0) {
|
||||
$username = $user;
|
||||
$workgroup = $realm;
|
||||
} else {
|
||||
$username = $userPart;
|
||||
$workgroup = $domainPart;
|
||||
$username = $matches[1];;
|
||||
$workgroup = $matches[2];
|
||||
}
|
||||
$smbAuth = new BasicAuth(
|
||||
$username,
|
||||
|
|
|
|||
Loading…
Reference in a new issue