Browse Source

Merge pull request #30795 from nextcloud/fix/smb-kerberos

John Molakvoæ 2 years ago
parent
commit
d9e4e48868
1 changed files with 2 additions and 4 deletions
  1. 2 4
      apps/files_external/lib/Lib/Backend/SMB.php

+ 2 - 4
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,