-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Description
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!