From 0bed61f949bc7a8c69cd154919e78b704e28c99e Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 4 Nov 2021 15:38:42 +0100 Subject: update to release smb lib Signed-off-by: Robin Appelman --- apps/files_external/lib/Lib/Backend/SMB.php | 8 ++++---- 1 file 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(); -- cgit v1.2.3