Fix LDAP query timeout issue. Previously, LDAP query timeout may cause the underlying connection to be unusable. Fixed to always reconnect if timeout happens.