Skip to content

LDAP backup server not called when LDAP main server fails #10160

@GitHubUser4234

Description

@GitHubUser4234

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!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions