tests: Temoporary fix for LDAP via Bitnami Legacy (#4583)

This commit is contained in:
Brennan Kinney 2025-10-03 03:07:43 +13:00 committed by GitHub
parent 369f357351
commit 4a45053c03
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -21,6 +21,7 @@ function setup_file() {
docker network create "${DMS_TEST_NETWORK}"
# Setup local openldap service:
# TODO: Migrate away from `bitnamilegacy/openldap`: https://github.com/docker-mailserver/docker-mailserver/issues/4582
docker run --rm -d --name "${CONTAINER2_NAME}" \
--env LDAP_ADMIN_PASSWORD=admin \
--env LDAP_ROOT='dc=example,dc=test' \
@ -30,7 +31,7 @@ function setup_file() {
--volume "${REPOSITORY_ROOT}/test/config/ldap/openldap/schemas/:/schemas/:ro" \
--hostname "${FQDN_LDAP}" \
--network "${DMS_TEST_NETWORK}" \
bitnami/openldap:latest
bitnamilegacy/openldap:latest
_run_until_success_or_timeout 20 sh -c "docker logs ${CONTAINER2_NAME} 2>&1 | grep 'LDAP setup finished'"