Step to reproduce:
- Start LDAP and James
- Login a user
- Shutdown the LDAP
- Login another user: it fails, it is expected
- Turn on LDAP again
- Retry login, it still fails and this is not expected.
Apparently, the connection is not well reset when LDAP come on line again.
- Add an integration test for this
- Fix the issue