|
|
|
@ -29,6 +29,7 @@ use \OCA\Files_External\Service\BackendService; |
|
|
|
|
use \OCA\Files_External\Lib\Auth\Password\SessionCredentials; |
|
|
|
|
use \OCA\Files_External\Lib\StorageConfig; |
|
|
|
|
use \OCA\Files_External\Lib\LegacyDependencyCheckPolyfill; |
|
|
|
|
use \OCA\Files_External\Lib\Backend\SMB; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Deprecated SMB_OC class - use SMB with the password::sessioncredentials auth mechanism |
|
|
|
@ -37,11 +38,11 @@ class SMB_OC extends Backend { |
|
|
|
|
|
|
|
|
|
use LegacyDependencyCheckPolyfill; |
|
|
|
|
|
|
|
|
|
public function __construct(IL10N $l, SessionCredentials $legacyAuth) { |
|
|
|
|
public function __construct(IL10N $l, SessionCredentials $legacyAuth, SMB $smbBackend) { |
|
|
|
|
$this |
|
|
|
|
->setIdentifier('\OC\Files\Storage\SMB_OC') |
|
|
|
|
->setStorageClass('\OC\Files\Storage\SMB') |
|
|
|
|
->setText($l->t('SMB / CIFS using OC login [DEPRECATED]')) |
|
|
|
|
->setText($l->t('SMB / CIFS using OC login')) |
|
|
|
|
->addParameters([ |
|
|
|
|
(new DefinitionParameter('host', $l->t('Host'))), |
|
|
|
|
(new DefinitionParameter('username_as_share', $l->t('Username as share'))) |
|
|
|
@ -54,6 +55,7 @@ class SMB_OC extends Backend { |
|
|
|
|
->setPriority(BackendService::PRIORITY_DEFAULT - 10) |
|
|
|
|
->addAuthScheme(AuthMechanism::SCHEME_PASSWORD) |
|
|
|
|
->setLegacyAuthMechanism($legacyAuth) |
|
|
|
|
->deprecateTo($smbBackend) |
|
|
|
|
; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|