summaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2021-11-04 15:38:42 +0100
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2022-01-20 19:18:25 +0000
commit48f6d0f2f6cbf35ab5a5c9fc0dc682d40002bfb1 (patch)
treeb2df64c85db7611db22ad46b1c2d2642835e066b /apps/files_external
parent39b294e0f80980b76178a9a45528b5ce8e38f096 (diff)
downloadnextcloud-server-48f6d0f2f6cbf35ab5a5c9fc0dc682d40002bfb1.tar.gz
nextcloud-server-48f6d0f2f6cbf35ab5a5c9fc0dc682d40002bfb1.zip
update to release smb lib
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_external')
-rw-r--r--apps/files_external/lib/Lib/Backend/SMB.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/files_external/lib/Lib/Backend/SMB.php b/apps/files_external/lib/Lib/Backend/SMB.php
index b6854e6938d..57ee866f3c7 100644
--- a/apps/files_external/lib/Lib/Backend/SMB.php
+++ b/apps/files_external/lib/Lib/Backend/SMB.php
@@ -94,10 +94,10 @@ class SMB extends Backend {
throw new \InvalidArgumentException('invalid authentication backend');
}
$credentialsStore = $auth->getCredentialsStore();
- $kerb_auth = new KerberosApacheAuth();
- if ($kerb_auth->checkTicket()) {
- $kerb_auth->registerApacheKerberosTicket();
- $smbAuth = $kerb_auth;
+ $kerbAuth = new KerberosApacheAuth();
+ // check if a kerberos ticket is available, else fallback to session credentials
+ if ($kerbAuth->checkTicket()) {
+ $smbAuth = $kerbAuth;
} else {
try {
$credentials = $credentialsStore->getLoginCredentials();