Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
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`
Attachments
Issue Links
- links to