diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2022-01-22 09:55:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-22 09:55:00 +0100 |
commit | d9e4e48868a3ae207562693cc7505120d31b385a (patch) | |
tree | 7eac722a1c116309750cc2d544eba53e58a15bbe /apps | |
parent | 3192b3e2f205cfcd478889c10e6b9fd6d4232df1 (diff) | |
parent | 9a32672c2600b8b0414eae6527c6ed9263c1e2c7 (diff) | |
download | nextcloud-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.php | 6 |
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, |