diff options
author | Robin Appelman <robin@icewind.nl> | 2021-11-04 15:38:42 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2022-01-20 16:08:55 +0100 |
commit | 0bed61f949bc7a8c69cd154919e78b704e28c99e (patch) | |
tree | 92e6778347b5b83bcdc521c78b05ad4bc01b3b3f /apps/files_external/lib | |
parent | a9619c3770b2659274ab236eb15dfea5ba9470bb (diff) | |
download | nextcloud-server-0bed61f949bc7a8c69cd154919e78b704e28c99e.tar.gz nextcloud-server-0bed61f949bc7a8c69cd154919e78b704e28c99e.zip |
update to release smb lib
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_external/lib')
-rw-r--r-- | apps/files_external/lib/Lib/Backend/SMB.php | 8 |
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(); |