Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-2601

Implement a LDAP healthCheck

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • ldap

    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

          Activity

            People

              Unassigned Unassigned
              btellier Benoit Tellier
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 20m
                  1h 20m