[14.0.3] Can't utilize SAMBA (2/3) under any circumstances

Nextcloud version (eg, 12.0.2): 14.0.3
Operating system and version (eg, Ubuntu 17.04): RHEL 7.5
Apache or nginx version (eg, Apache 2.4.25): httpd-2.4.6-80
PHP version (eg, 7.1): 7.0.32 (php70w [webtatic])

The issue you are facing:

I am currently unable to link up a samba share (which requires SMB2 or SMB3) to the server. I’ve installed samba-client and self-built php-smbclient (as the EPEL version relies on PHP 5.x) and although both allow me the ability to create a Samba external source, they don’t succeed in execution (ie errors out). I’ve also tried mounting a drive manually through /etc/fstab and then using that as local storage (in both /mnt/share and /var/www/html/nextcloud/data/smb/share. If the share is unmounted, then the ES will show up just fine in the user view, otherwise it hides itself in the External Storages tab and then redirects back to the user’s root location upon entering. Is there any way to use SMB2/3 with Nextcloud? I’ve been reading page after page of random attempts and solutions since 12.0.3 and none of them are working.

Is this the first time you’ve seen this error? (Y/N): Y

Cheers,
Mike

The output of your Nextcloud log in Admin > Logging:

Error	no app in context	Icewind\SMB\Exception\AccessDeniedException: Access denied

    /var/www/html/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Wrapped/Connection.php - line 44:

    Icewind\SMB\Wrapped\Parser->checkConnectionError("Connection ... D")

    /var/www/html/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Wrapped/Share.php - line 92:

    Icewind\SMB\Wrapped\Connection->clearTillPrompt()

    /var/www/html/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Wrapped/Share.php - line 105:

    Icewind\SMB\Wrapped\Share->getConnection()

    /var/www/html/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Wrapped/Share.php - line 393:

    Icewind\SMB\Wrapped\Share->connect()

    /var/www/html/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Wrapped/Share.php - line 170:

    Icewind\SMB\Wrapped\Share->execute("allinfo \"\"")

    /var/www/html/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php - line 164:

    Icewind\SMB\Wrapped\Share->stat("/")

    /var/www/html/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php - line 264:

    OCA\Files_External\Lib\Storage\SMB->getFileInfo("/")

    /var/www/html/nextcloud/lib/private/Files/Storage/Common.php - line 450:

    OCA\Files_External\Lib\Storage\SMB->stat("")

    /var/www/html/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php - line 578:

    OC\Files\Storage\Common->test()

    /var/www/html/nextcloud/apps/files_external/lib/config.php - line 240:

    OCA\Files_External\Lib\Storage\SMB->test(false, true)

    /var/www/html/nextcloud/apps/files_external/lib/Controller/StoragesController.php - line 256:

    OC_Mount_Config::getBackendStatus("\\OCA\\File ... B", { host: "cgs ... }}, false, true)

    /var/www/html/nextcloud/apps/files_external/lib/Controller/GlobalStoragesController.php - line 179:

    OCA\Files_External\Controller\StoragesController->updateStorageStatus(OCA\Files_Ex ... {}, true)

    /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 166:

    OCA\Files_External\Controller\GlobalStoragesController->update(7, "SMB", "smb", "password::password", { host: "cgs ... "}, { encrypt: t ... e}, [], [], 100, true)

    /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 99:

    OC\AppFramework\Http\Dispatcher->executeController(OCA\Files_Ex ... {}, "update")

    /var/www/html/nextcloud/lib/private/AppFramework/App.php - line 118:

    OC\AppFramework\Http\Dispatcher->dispatch(OCA\Files_Ex ... {}, "update")

    /var/www/html/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47:

    OC\AppFramework\App::main("OCA\\Files_ ... r", "update", OC\AppFramew ... {}, { id: "7",_r ... "})

    OC\AppFramework\Routing\RouteActionHandler->__invoke({ id: "7",_r ... "})

    /var/www/html/nextcloud/lib/private/Route/Router.php - line 297:

    call_user_func(OC\AppFramew ... {}, { id: "7",_r ... "})

    /var/www/html/nextcloud/lib/base.php - line 987:

    OC\Route\Router->match("/apps/files ... 7")

    /var/www/html/nextcloud/index.php - line 42:

    OC::handleRequest()

Yes: