Skip to content

Fix incorrect conditional in LDAPUtil.testHosts()

This fixes an issue where when a set of static servers are specified (LDAPServerList), and the network changes when there is a ticket available, and the LDAP servers are no longer reachable, NoMAD gets stuck in a loop rapidly checking for connectivity to the static set of servers, and eventually crashes.

Based on the comment in the code, it appears that the conditional to check if the static server list is empty was incorrect.

Merge request reports