When trying to set up a new LDAP connection, the setup wizard failes at the first steps with the error message The Base DN appears to be wrong and An error occurred. Please check the Base DN, as well as connection settings and credentials. when clicking on Test Base DN.
When executing ldapsearch from the Nextcloud Container, I can contact my LDAP server and query users. So I think there is no issue with my LDAP server or the network connection to it.
In the dev console of the browser, I can see the following messages:
will not save undefined key: ldap_basewill not save undefined key: ldap_dn
When starting a dev instance in a docker container on my local machine, I get an error that the LDAP server cannot be reached (which is true) and I can click on Detect Port, which does not work in my already existing instance. I am using SAML to for the user login, but I want to add LDAP, so I can automatically delete users, which are no longer existing.
I am using Nextcloud Version 27.1.7
Steps to reproduce
Go to admin settings
Go to LDAP/AD integration
Try to set up a connection and click on Test Base DN
Get errors and be unable to proceed.
Expected behavior
It is possible to set up a LDAP connection in the GUI wizard.
Installation method
Community Docker image
Nextcloud Server version
27
Operating system
Debian/Ubuntu
PHP engine version
None
Web server
Nginx
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Updated from a MINOR version (ex. 22.1 to 22.2)
Are you using the Nextcloud Server Encryption module?
Any news on this issue? It is very annoying to setup a fresh instance, to configure all settings and then manually transfer them over with occ. We have this issue on all our instances.
⚠️ This issue respects the following points: ⚠️
Bug description
When trying to set up a new LDAP connection, the setup wizard failes at the first steps with the error message
The Base DN appears to be wrong
andAn error occurred. Please check the Base DN, as well as connection settings and credentials.
when clicking onTest Base DN
.When executing ldapsearch from the Nextcloud Container, I can contact my LDAP server and query users. So I think there is no issue with my LDAP server or the network connection to it.
In the dev console of the browser, I can see the following messages:
will not save undefined key: ldap_base
will not save undefined key: ldap_dn
When starting a dev instance in a docker container on my local machine, I get an error that the LDAP server cannot be reached (which is true) and I can click on
Detect Port
, which does not work in my already existing instance. I am using SAML to for the user login, but I want to add LDAP, so I can automatically delete users, which are no longer existing.I am using Nextcloud Version
27.1.7
Steps to reproduce
Expected behavior
It is possible to set up a LDAP connection in the GUI wizard.
Installation method
Community Docker image
Nextcloud Server version
27
Operating system
Debian/Ubuntu
PHP engine version
None
Web server
Nginx
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Updated from a MINOR version (ex. 22.1 to 22.2)
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
No response
Nextcloud Logs
No response
Additional info
No response