[ https://issues.apache.org/jira/browse/JAMES-2601?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benoit Tellier closed JAMES-2601. --------------------------------- Resolution: Fixed > 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: Benoit Tellier > Priority: Major > Labels: feature, health-check, newbie > Time Spent: 1h 20m > Remaining Estimate: 0h > > 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 (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org