Skip to content

Commit d9e4e48

Browse files
authored
Merge pull request #30795 from nextcloud/fix/smb-kerberos
2 parents 3192b3e + 9a32672 commit d9e4e48

File tree

1 file changed

+2
-4
lines changed
  • apps/files_external/lib/Lib/Backend

1 file changed

+2
-4
lines changed

apps/files_external/lib/Lib/Backend/SMB.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,12 @@ public function manipulateStorageConfig(StorageConfig &$storage, IUser $user = n
108108
if (empty($realm)) {
109109
$realm = 'WORKGROUP';
110110
}
111-
$userPart = $matches[1];
112-
$domainPart = $matches[2];
113111
if (count($matches) === 0) {
114112
$username = $user;
115113
$workgroup = $realm;
116114
} else {
117-
$username = $userPart;
118-
$workgroup = $domainPart;
115+
$username = $matches[1];;
116+
$workgroup = $matches[2];
119117
}
120118
$smbAuth = new BasicAuth(
121119
$username,

0 commit comments

Comments
 (0)