aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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();