Fixes #3550: avoid testing LDAP if it can't work on first install
Merge pull request #54 from jooooooon/bug_3550/fix_broken_test_for_LDAP_from_bug_3528

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