LDAP: fix handling when LDAP Host is offline
LDAP: fix possible recursion
Merge pull request #3562 from owncloud/fix_ldap_offline_host_handling

Fix ldap offline host handling