]> source.dussan.org Git - nextcloud-server.git/commitdiff
update to release smb lib
authorRobin Appelman <robin@icewind.nl>
Thu, 4 Nov 2021 14:38:42 +0000 (15:38 +0100)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Thu, 20 Jan 2022 19:14:11 +0000 (19:14 +0000)
Signed-off-by: Robin Appelman <robin@icewind.nl>
apps/files_external/lib/Lib/Backend/SMB.php

index b6854e6938d19d98a6a245a00a38185efd4ed461..57ee866f3c793b89dcc1b3fa6075245d4496b65c 100644 (file)
@@ -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();