Fixed bug in LDAPCredential where not trapping failed connections