summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2022-01-22 09:55:00 +0100
committerGitHub <noreply@github.com>2022-01-22 09:55:00 +0100
commitd9e4e48868a3ae207562693cc7505120d31b385a (patch)
tree7eac722a1c116309750cc2d544eba53e58a15bbe /apps
parent3192b3e2f205cfcd478889c10e6b9fd6d4232df1 (diff)
parent9a32672c2600b8b0414eae6527c6ed9263c1e2c7 (diff)
downloadnextcloud-server-d9e4e48868a3ae207562693cc7505120d31b385a.tar.gz
nextcloud-server-d9e4e48868a3ae207562693cc7505120d31b385a.zip
Merge pull request #30795 from nextcloud/fix/smb-kerberos
Diffstat (limited to 'apps')
-rw-r--r--apps/files_external/lib/Lib/Backend/SMB.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/files_external/lib/Lib/Backend/SMB.php b/apps/files_external/lib/Lib/Backend/SMB.php
index 57ee866f3c7..70eaa206483 100644
--- a/apps/files_external/lib/Lib/Backend/SMB.php
+++ b/apps/files_external/lib/Lib/Backend/SMB.php
@@ -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,