Tellier Benoit created JAMES-2601:
-------------------------------------
Summary: Implement a LDAP healthCheck
Key: JAMES-2601
URL: https://issues.apache.org/jira/browse/JAMES-2601
Project: James Server
Issue Type: New Feature
Components: ldap
Reporter: Tellier Benoit
Implement a healthcheck for LDAP readonly User repository.
Inject ReadOnlyUsersLDAPRepository in your health check.
Test the existence of a random user in your healthcheck.
- If a user or null is returned, then it means the LDAP is available
- If a NamingException is thrown, then the LDAP is not available.
Write basic test with a dockerized LDAP for your health check - you can pause
it to simulate failure.
Bind your health check in
`server/container/guice/cassandra-ldap-guice/src/main/java/org/apache/james/data/LdapUsersRepositoryModule.java`
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]