mirror of
https://github.com/osixia/container-openldap.git
synced 2026-11-06 12:40:36 -04:00
- 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>
18 lines
486 B
Bash
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'
|