Files
Bertrand GounyandClaude Opus 5.5 52230d6cd7 feat: update to osixia/baseimage 2.0.0 and add integration tests
- Update the base image to osixia/baseimage:alpine-2.0.0 and build the
  CI/CD tool with osixia/dagger-build (Go 1.26.9).
- Add Dagger integration tests: default bootstrap, alternative schemas,
  all compatible modules and schemas with every bootstrap feature on a
  3-node replicated cluster with TLS required, backup/restore, simulated
  upgrade and upgrade from previous releases.
- Fix bootstrap failing with "Argument list too long" with large schemas:
  load them with LDIF include: lines, fail on missing schemas.
- Default OPENLDAP_BOOTSTRAP_PPOLICY_DEFAULT_CHECK_QUALITY to 1 so
  pwdMinLength is enforced.
- Align the CI workflow with osixia/container-baseimage and add Dependabot.
- Document available schemas and modules and their incompatibilities.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 20:37:20 +02:00

18 lines
486 B
Bash

#!/bin/bash
set -euo pipefail
# Test fixture, run as root in a derived container with root capabilities:
# give the node its FQDN and make it resolve locally (0.0.0.0, so slapd listens on all
# interfaces), then run the image entrypoint as the ldap user.
fqdn="$1"
hostname "${fqdn}"
cp /etc/hosts /tmp/openldap-test-hosts
echo "0.0.0.0 ${fqdn}" >> /tmp/openldap-test-hosts
mount --bind /tmp/openldap-test-hosts /etc/hosts
exec su -p -s /bin/sh ldap -c 'exec /usr/sbin/container'