SMB/CIFS integration with LDAP server connectet

Problem to connet to external storage with ldap authentication enabled

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

When I try to make a connection to an external storage (e.g. smb/cifs), Nextcloud asks me at the end of this process (by klicking on the hook an the very right of the line) to enter a passwort.

But this password never is acceptet. I’ve tried a lot of alternatives (using a local (Nextcloud) accont with admin rights, using a ldap account with admin rights, trying to do all this not in the global but personal section. Nothing is workig. Never the entered password to finalize the process is accepted.

What can I do? Where ist the mistake?

Thx, Uwe

The Basics

  • Nextcloud Server version:
    • Nextcloud Hub 10 (31.0.7)
  • Operating system and version:
    • uBUNTU 24.04
  • Web server and version:
    • Apache/2.4.58 (Ubuntu)
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • replace me
  • PHP version
    • 8.3
  • Is this the first time you’ve seen this error? (Yes / No):
    • no
  • When did this problem seem to first start?
    • after first installation
  • Installation method
    • archive, docker
  • Are you using CloudfIare, mod_security, or similar?
    • no

Summary of the issue you are facing:

[…]

Steps to replicate it (hint: details matter!):

Log entries

Nextcloud

The last two lines of nextcloud log, appearing when trying to enter the password:

{"reqId":"a9efLHGodtufdFD1tevH","level":2,"time":"2025-09-09T16:00:47+00:00","remoteAddr":"89.245.207.98","user":"ncmaster","app":"user_ldap","method":"POST","url":"/index.php/apps/files_external/globalstorages","message":"Bind failed: 49: Invalid credentials","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0","version":"31.0.7.1","data":{"app":"user_ldap"}}
{"reqId":"a9efLHGodtufdFD1tevH","level":2,"time":"2025-09-09T16:00:47+00:00","remoteAddr":"89.245.207.98","user":"ncmaster","app":"core","method":"POST","url":"/index.php/apps/files_external/globalstorages","message":"Login failed: 'ncmaster' (Remote IP: '89.245.207.98')","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0","version":"31.0.7.1","data":{"app":"core"}}

First test the SMB share is working from any Windows workstation and you are able to map it:

\\COMPUTER\share

If you succeed in mapping a SMB share, when the External Storage should work the same.

Ideally the share should be in group Users and not Adminstrators. It’s always easy and tempting to have admin share everything to everyone, but try creating a user and try getting just that one user read the SMB.

The nextcloud does not even have to be joined to the AD, so when you populate the External Storage fields, do mention the name of the computer in the Domain field.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.