mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 08:16:43 -04:00
Merge pull request #30693 from nextcloud/backport/29923/stable21
This commit is contained in:
commit
86fda905c5
1 changed files with 4 additions and 0 deletions
|
|
@ -76,6 +76,10 @@ class SMB extends Backend {
|
|||
public function manipulateStorageConfig(StorageConfig &$storage, IUser $user = null) {
|
||||
$auth = $storage->getAuthMechanism();
|
||||
if ($auth->getScheme() === AuthMechanism::SCHEME_PASSWORD) {
|
||||
if (!is_string($storage->getBackendOption('user')) || !is_string($storage->getBackendOption('password'))) {
|
||||
throw new \InvalidArgumentException('user or password is not set');
|
||||
}
|
||||
|
||||
$smbAuth = new BasicAuth(
|
||||
$storage->getBackendOption('user'),
|
||||
$storage->getBackendOption('domain'),
|
||||
|
|
|
|||
Loading…
Reference in a new issue