Fixes #3550: avoid testing LDAP if it can't work on first install