Browse Source
update to release smb lib
Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/29349/head
Robin Appelman
4 years ago
No known key found for this signature in database
GPG Key ID: 42B69D8A64526EFB
1 changed files with
4 additions and
4 deletions
-
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(); |
|
|
|
|