Skip to content

Conversation

@juliusknorr
Copy link
Member

@juliusknorr juliusknorr commented Jul 13, 2018

This fixes an infinite loop in setups with an backup ldap server as reported in #10160

We should only try to bind to ldap for the main server if we have a configuration set with doConnect at this point, otherwise there will be no resource for the connection set and establishConnection() will be called over and over again.

Signed-off-by: Julius Härtl <jus@bitgrid.net>
@juliusknorr juliusknorr changed the title Only bind if configuration for the first server is available Only bind to ldap if configuration for the first server is set Jul 13, 2018
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Copy link
Member

@MorrisJobke MorrisJobke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and works for single server setups as well. It still properly detects servers that are down and connects when they are up again

@MorrisJobke MorrisJobke merged commit 0343d59 into master Jul 13, 2018
@MorrisJobke MorrisJobke deleted the bugfix/10160/ldap-bind-loop branch July 13, 2018 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants