External Storage with LDAP not working

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 23.0.0
Operating system and version (eg, Ubuntu 20.04): Debian 11
Apache or nginx version (eg, Apache 2.4.25): 2.4.52
PHP version (eg, 7.4): 7.4

The issue you are facing: I configured LDAP authorization and it works, users can access by their AD account, but I can’t configure external storage like SMB or SFTP. I use the correct credentials but it not works

ldap

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

Steps to replicate it:

The output of your Nextcloud log in Admin > Logging:

context	Icewind\SMB\Exception\AuthenticationException: Invalid login
/var/www/html/apps/files_external/3rdparty/icewind/smb/src/Wrapped/Connection.php - line 54:

Icewind\SMB\Wrapped\Parser->checkConnectionError()

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/var/www/html/apps/files_external/lib/MountConfig.php - line 130:

OCA\Files_External\Lib\Storage\SMB->test()

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

OCA\Files_External\MountConfig::getBackendStatus("*** sensiti ... *")

/var/www/html/apps/files_external/lib/Controller/UserGlobalStoragesController.php - line 123:

OCA\Files_External\Controller\StoragesController->updateStorageStatus("*** sensiti ... *")

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

OCA\Files_External\Controller\UserGlobalStoragesController->show()

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

OC\AppFramework\Http\Dispatcher->executeController()

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

OC\AppFramework\Http\Dispatcher->dispatch()

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

OC\AppFramework\App::main()

/var/www/html/lib/base.php - line 1006:

OC\Route\Router->match()

/var/www/html/index.php - line 36:

OC::handleRequest()