LDAP connection test keeps failing

It is likely a bug introduced recently and there is a bug report [JENKINS-68748] NullPointerException when using "Test LDAP settings" button - Jenkins Jira