Hello,
I’m trying to configure the external shared folder in my nc with LDAP integration.
I’m using Debian 10, Nginx and PHP7.3-fpm following the c-rieger tutorial installation guide.
I can connect to my Synology shared folder but I can’t doing it using nextcloud.
Connecting from terminal everything works ok. Example:
root@cloud:~# smbclient //nascloud/pruebas -Usanclemente/administrador
Enter SANCLEMENTE\administrador’s password:
Try “help” to get a list of possible commands.
smb: > dir
. DA 0 Tue Nov 19 12:28:09 2019
… DA 0 Fri Nov 15 11:53:54 2019
probando DA 0 Tue Nov 19 12:28:09 2019
8425250492 blocks of size 1024. 8368552484 blocks available
smb: > cd probando
smb: \probando> dir
. DA 0 Tue Nov 19 12:28:09 2019
… DA 0 Tue Nov 19 12:28:09 2019
8425250492 blocks of size 1024. 8368552484 blocks available
smb: \probando> exit
I tried with SMB test (using php-smbclient) and I get this error:
Error while loading share content.
Icewind\SMB\Exception\ConnectionRefusedException:
- /var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeState.php - line 62:Icewind\SMB\Exception\Exception::fromMap({ 1: "Icewin … "}, 111, null)
- /var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeState.php - line 74:Icewind\SMB\Native\NativeState->handleError(null)
- /var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeState.php - line 105:Icewind\SMB\Native\NativeState->testResult(false, “smb:///”)
- /var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeShare.php - line 92:Icewind\SMB\Native\NativeState->opendir(“smb:///”)
- /var/www/nextcloud/apps/smb_test/lib/Controller/SmbController.php - line 95:Icewind\SMB\Native\NativeShare->dir(null)
- /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 170:OCA\SMBTest\Controller\SmbController->dir(null, null, null, null, Icewind\SMB\ … {}, null)
- /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 99:OC\AppFramework\Http\Dispatcher->executeController(OCA\SMBTest\ … {}, “dir”)
- /var/www/nextcloud/lib/private/AppFramework/App.php - line 126:OC\AppFramework\Http\Dispatcher->dispatch(OCA\SMBTest\ … {}, “dir”)
- /var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47:OC\AppFramework\App::main(“OCA\SMBTes … r”, “dir”, OC\AppFramew … {}, { _route: “smb_test.smb.dir”})
- OC\AppFramework\Routing\RouteActionHandler->__invoke({ _route: “smb_test.smb.dir”})
- /var/www/nextcloud/lib/private/Route/Router.php - line 297:call_user_func(OC\AppFramew … {}, { _route: “smb_test.smb.dir”})
- /var/www/nextcloud/lib/base.php - line 1000:OC\Route\Router->match("/apps/smb_test/dir")
- /var/www/nextcloud/index.php - line 42:OC::handleRequest()
If I try to create the external storage (joined to the domain) from NextCloud I get an error 422 in the Ajax request and there is no way of connecting.
I installed the server with different versions maybe 10 times almost with no success. Modifying samba versions protocol in /etc/samba/smb.conf the workgroup, etc… Connecting with and without domain, etc…etc…
Any idea, would be appreciated.
Thank you.