Open
Description
It seems that upgrading the openldap container to 1.5.0 breaks multi-master replication, while using the same configuration on 1.3.0 works fine. We're using the docker-compose file listed below:
version: "3"
services:
idp-ldap_1:
image: ldap-local
environment:
- LDAP_BACKUP_CONFIG_CRON_EXP=0 2 * * *
- LDAP_BACKUP_DATA_CRON_EXP=0 2 * * *
-
# tls required for ha, only used for replication. generates certificate using HOSTNAME
- HOSTNAME=idp-ldap_1
- LDAP_TLS=true
- LDAP_TLS_VERIFY_CLIENT=allow
# LDAP parameters
- LDAP_BACKEND=mdb
- LDAP_ADMIN_PASSWORD=PLACEHOLDER
- LDAP_DOMAIN=PLACEHOLDER
- LDAP_ORGANIZATION=PLACEHOLDER
- LDAP_REMOVE_CONFIG_AFTER_SETUP=false
- LDAP_BASE_DN=PLACEHOLDER
- LDAP_REPLICATION=true
# Python to bash magic to convert this array, copied from osixia example https://github.com/osixia/docker-openldap#multi-master-replication
- LDAP_REPLICATION_HOSTS=#PYTHON2BASH:['ldap://idp-ldap_1','ldap://idp-ldap_2']
volumes:
- ./data_slapd_database_1:/var/lib/ldap
- ./data_slapd_config_1:/etc/ldap/slapd.d
- ./changelog_1:/changelog
- ./backup_1:/data/backup
ports:
- "389:389"
command: --copy-service --loglevel debug /resources/run.sh
networks:
- idp-develop
restart: always
volumes:
data_slapd_database_1:
data_slapd_config_1:
changelog_1:
backup_1:
networks:
idp-develop:
external:
name: idp-develop`
Above configuration gives us working replication across instances. However, when we upgrade our image to 1.5.0, we get the following error:
5acb4ffa read_config: no serverID / URL match found. Check slapd -h arguments. 5acb4ffa slapd stopped.
This is without any configuration changes.
Metadata
Metadata
Assignees
Labels
No labels