Special options for SMB external stroage

8.2.x
external_storage
help

#1

Hi,
I am trying to add samba share to my owncloud server. I am able to connect several linux servers, however, logging to our (ancient) Novell 6.5 implementation of samba requires to specify sec=ntlm for regular mount command or "client ntlmv2 auth = no" option (via external option file) for smbclient.
The novell server is accessible though the LAN only, security is not crucial here.

Actual behaviour
find a place to specify extra arguments for smbclient calls ( smbclient -s /path/to/options/file or something like that)

Server configuration
Operating system: cenots 6.7
Web server: Apache/2.2.15
Database: mysql 5.1.73 ,
PHP version: PHP 5.6.21 (cli), smbclient compiled in (checked via php -m)
ownCloud version (see ownCloud admin page): 8.2.7 (stable)
Updated from an older ownCloud or fresh install: updated
ownCloud log (data/owncloud.log, see https://central.owncloud.org/t/how-to-find-webserver-or-oc-logfile-enable-php-logfile/808):

Exception: {"Exception":"Icewind\SMB\Exception\ForbiddenException","Message":"Invalid request for smb://nw1.itam.cas.cz/data/ (ForbiddenException)","Code":13,"Trace":"#0 /srv/owncloud/apps/files_external/3rdparty/icewind/smb/src/NativeState.php(72): Icewind\SMB\NativeState->handleError('smb://nw1.itam....')

1 /srv/owncloud/apps/files_external/3rdparty/icewind/smb/src/NativeState.php(180): Icewind\SMB\NativeState->testResult(false, 'smb://nw1.itam....')

2 /srv/owncloud/apps/files_external/3rdparty/icewind/smb/src/NativeShare.php(108): Icewind\SMB\NativeState->stat('smb://nw1.itam....')

3 /srv/owncloud/apps/files_external/3rdparty/icewind/smb/src/NativeShare.php(103): Icewind\SMB\NativeShare->getStat('/')

4 /srv/owncloud/apps/files_external/lib/smb.php(110): Icewind\SMB\NativeShare->stat('/')

5 /srv/owncloud/apps/files_external/lib/smb.php(144): OC\Files\Storage\SMB->getFileInfo('')

6 /srv/owncloud/lib/private/files/storage/common.php(410): OC\Files\Storage\SMB->stat('')

7 /srv/owncloud/apps/files_external/lib/config.php(261): OC\Files\Storage\Common->test(false)

8 /srv/owncloud/apps/files_external/controller/storagescontroller.php(237): OC_Mount_Config::getBackendStatus('\OC\Files\Stora...', Array, false)

9 /srv/owncloud/apps/files_external/controller/userstoragescontroller.php(113): OCA\Files_External\Controller\StoragesController->updateStorageStatus(Object(OCA\Files_external\Lib\StorageConfig))

10 [internal function]: OCA\Files_External\Controller\UserStoragesController->create('novell', 'smb', 'password::passw...', Array, Array)

11 /srv/owncloud/lib/private/appframework/http/dispatcher.php(159): call_user_func_array(Array, Array)

12 /srv/owncloud/lib/private/appframework/http/dispatcher.php(89): OC\AppFramework\Http\Dispatcher->executeController(Object(OCA\Files_External\Controller\UserStoragesController), 'create')

13 /srv/owncloud/lib/private/appframework/app.php(108): OC\AppFramework\Http\Dispatcher->dispatch(Object(OCA\Files_External\Controller\UserStoragesController), 'create')

14 /srv/owncloud/lib/private/appframework/routing/routeactionhandler.php(45): OC\AppFramework\App::main('UserStoragesCon...', 'create', Object(OC\AppFramework\DependencyInjection\DIContainer), Array)

15 [internal function]: OC\AppFramework\routing\RouteActionHandler->__invoke(Array)

16 /srv/owncloud/lib/private/route/router.php(291): call_user_func(Object(OC\AppFramework\routing\RouteActionHandler), Array)

17 /srv/owncloud/lib/base.php(853): OC\Route\Router->match('/apps/files_ext...')

18 /srv/owncloud/index.php(39): OC::handleRequest()

19 {main}","File":"/srv/owncloud/apps/files_external/3rdparty/icewind/smb/src/NativeState.php","Line":42}

Special configuration (external storage, external authentication, reverse proxy, server-side-encryption):

external storage


#2

Hi,

you can use smbclient on command line and use https://doc.owncloud.org/server/9.1/admin_manual/configuration_files/external_storage/local.html