You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#10031 does its job well, but unfortunately it seems to create another issue, which is that the LDAP backup server is not called when the LDAP main server fails. To reproduce, make sure that main and backup LDAP server settings point to LDAP servers that are accessible. Then change the value of the main server setting to some invalid domain/port. Now LDAP users cannot login to Nextcloud anymore. Then replace the apps/user_ldap/lib/Connection.php with a version before the #10031 patch, Nextcloud is working normally again.
Looks like in apps/user_ldap/lib/Connection.php there is an infinite loop (establishConnection() => bind() => getConnectionResource() => establishConnection()) once the primary server becomes inaccessible.
Please have a look, thanks!
The text was updated successfully, but these errors were encountered:
GitMate.io thinks possibly related issues are #10031 (LDAP backup server should not be queried when auth fails), #3074 (Can't add LDAP server), #10032 ([stable13] LDAP backup server should not be queried when auth fails), #772 (LDAP Users not mapped and authentication fails), and #272 (LDAP Users not mapped and authentication fails).
I could reproduce this and I prepared a fix at #10227
The infinite loop was caused by calling bind even if there were no connection details set. Without those there was no connection resource available so it tried to get those for the main server again by calling establishConnection().
@GitHubUser4234 Could you try if the following patch fixes the issue for you:
Hi,
#10031 does its job well, but unfortunately it seems to create another issue, which is that the LDAP backup server is not called when the LDAP main server fails. To reproduce, make sure that main and backup LDAP server settings point to LDAP servers that are accessible. Then change the value of the main server setting to some invalid domain/port. Now LDAP users cannot login to Nextcloud anymore. Then replace the apps/user_ldap/lib/Connection.php with a version before the #10031 patch, Nextcloud is working normally again.
Looks like in apps/user_ldap/lib/Connection.php there is an infinite loop (
establishConnection()
=>bind()
=>getConnectionResource()
=>establishConnection()
) once the primary server becomes inaccessible.Please have a look, thanks!
The text was updated successfully, but these errors were encountered: