Browse Source

update to release smb lib

Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/29349/head
Robin Appelman 4 years ago
parent
commit
0bed61f949
No known key found for this signature in database GPG Key ID: 42B69D8A64526EFB
  1. 8
      apps/files_external/lib/Lib/Backend/SMB.php

8
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();

Loading…
Cancel
Save