Commit Graph
773 Commits
Author SHA1 Message Date
Bertrand GounyandClaude Opus 5.5 5df4f23a40 ci: build each arch natively and publish them together
Build and test each arch on its own runner (ubuntu-latest and
ubuntu-24.04-arm) instead of under QEMU, with osixia/dagger-build OCI
archives: on tags, build jobs export them as artifacts, and the publish
job deploys them as a single multi-arch image per tag.

Integration scenarios now run on every built image, so on arm64 too:
each runner builds its own arch, so the engine platform filter never
skipped anything.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2.6.15-beta
2026-10-16 23:47:50 +02:00
Bertrand GounyandClaude Opus 5.5 5073cc319f ci: set COSIGN_EXPERIMENTAL for image signing
cosign requires COSIGN_EXPERIMENTAL=1 to use --registry-referrers-mode=oci-1-1:
the sign step failed on tags since the CI workflow refactoring.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 21:44:28 +02:00
Bertrand GounyandClaude Opus 5.5 e50450d74d fix(restore): roll back to the previous data when the restore fails
openldap-ctl restore --force deleted existing config and data before
loading the backup: a failing slapadd left OpenLDAP stopped with empty or
partial databases. Existing data is now moved to a hidden
.restore-previous directory in the same volume, removed when the restore
succeeds, and put back otherwise. OpenLDAP is restarted in both cases if
it was running. A leftover .restore-previous directory from an
interrupted restore blocks the next restore.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 21:25:20 +02:00
Bertrand GounyandClaude Opus 5.5 8660345710 fix(replication): quote syncrepl credentials and reject double quotes
The replication password was not quoted in olcSyncRepl: a password with
spaces made the bootstrap fail. The default sync repl template now quotes
credentials. slapd can not store an escaped double quote followed by a
space in olcSyncRepl, so passwords with double quotes are rejected with an
explicit error.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 21:12:58 +02:00
Bertrand GounyandClaude Opus 5.5 8c6617e0d2 fix(backup): limit --clean to backup files and add --clean-prefix
openldap-ctl backup --clean removed every file older than N days in the
backup directory, including manual and pre-upgrade backups. It now only
removes backup files, and --clean-prefix limits it to backups starting
with a prefix.

Cron backups are named openldap-cron-<date>-<version> and cleaned with
--clean-prefix openldap-cron-.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 20:58:36 +02:00
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
Bertrand GounyandClaude Opus 5.5 fa0eae90d5 chore: keep trailing whitespace in generated schema LDIF files
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 23:34:43 +02:00
Bertrand GounyandClaude Opus 5.5 3bcc881afe fix(schema): restore significant trailing space in postfix-book.ldif
A stripped trailing space before a folded line merged
"caseExactIA5Match" and "SYNTAX" in mailStorageDirectory, making
slapadd reject the schema during bootstrap. Regenerated with
openldap-ctl schema2ldif.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 23:34:43 +02:00
Bertrand GounyandClaude Opus 5.5 e9971ff302 docs: add AGENTS.md
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 22:50:29 +02:00
Bertrand Gouny d7c4500b2c docs: udate default values 2026-10-13 23:08:07 +02:00
Bertrand GounyandClaude Opus 5.5 6d9bb2871b docs: update changelog
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 22:06:16 +02:00
Bertrand GounyandClaude Opus 5.5 c12bf321d2 chore: fix typos in log message and comment
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 22:06:16 +02:00
Bertrand GounyandClaude Opus 5.5 630af0d369 feat(ctl): print usage when schema2ldif has no arguments
Also fix a typo in the conversion error message.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 22:06:15 +02:00
Bertrand GounyandClaude Opus 5.5 e60f2c32d1 fix(ctl): check backup files before restoring
Verify that the backup files exist and are valid gzip archives before
stopping OpenLDAP or deleting existing data.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 22:06:15 +02:00
Bertrand GounyandClaude Opus 5.5 97af2dbd7c fix(bootstrap): strip empty lines from every LDIF fragment
The first file of each prefix group was not stripped, so a trailing
empty line there split the entry completed by the following files.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 22:06:15 +02:00
Bertrand GounyandClaude Opus 5.5 a65faa1611 fix(bootstrap): remove temporary files on exit
The RETURN traps overwrote each other and left the generated config
LDIF in /tmp. Use a single temporary directory removed by an EXIT trap.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 22:06:15 +02:00
Bertrand GounyandClaude Opus 5.5 08e98c89c4 feat(bootstrap): validate suffix and replication hosts count
Fail with an explicit error when the suffix does not start with dc=
(the root entry was created with an empty dc) and when more than 9
replication hosts are set (the generated rid would exceed 999).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 22:06:15 +02:00
Bertrand GounyandClaude Opus 5.5 99633c18bc fix(bootstrap): let authenticated users read allowed attributes
Without access to the entry pseudo-attribute the ACL rule had no
effect. Also allow objectClass, ou, o and dc so searches and tree
browsing work.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 22:06:15 +02:00
Bertrand GounyandClaude Opus 5.5 52b2918ea8 fix(ctl): hash passwords with special characters correctly
The password was expanded before eval and parsed again as shell code,
so spaces, $ or ; changed the hashed value or ran extra commands.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 22:06:15 +02:00
Bertrand GounyandClaude Opus 5.5 a762bda77d fix(upgrade): detect downgrades at minor and patch levels
version_lt kept the whole version as a single array element, so the
arithmetic comparison failed and the function always returned false.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 22:06:15 +02:00
Bertrand Gouny 7ce0c43309 feat: add Postfix Book schema and improve diagnostics
Add the Postfix Book schema in .schema and cn=config LDIF formats, document its incompatibility with virtualMail, and improve debug output and validation during schema conversion and file moves. Update the base image to osixia/baseimage:alpine-2.0.0-rc3 and document the changes for 2.6.15-beta.
2026-10-13 22:06:15 +02:00
Bertrand 6e26809af9 Update CHANGELOG.md 2026-10-08 09:50:50 +02:00
Bertrand Gouny c62c5f11da feat: OpenLDAP v2.6.15 2.6.15-alpha 2026-10-07 21:53:52 +02:00
Bertrand Gouny 5bd37272a7 feat: OpenLDAP v2.6.10 2026-10-07 21:50:54 +02:00
Bertrand e3157b0183 Create FUNDING.yml 2026-04-28 19:45:22 +02:00
Bertrand c97bcba5c3 Update README.md 2026-04-03 11:43:16 +02:00
Bertrand Gouny 635034a758 docs: update light-baseimage links 2021-02-19 14:01:03 +01:00
Bertrand Gouny 37ec78df71 ci: git flow 2021-02-19 13:58:19 +01:00
Bertrand Gouny 32eb22ce1e Merge branch 'release-1.5.0' into stable v1.5.0 2021-02-19 13:53:04 +01:00
Bertrand Gouny 1ee0cf75ad docs: changelog + readme 2021-02-19 13:23:51 +01:00
Bertrand Gouny 4df33e1358 Merge branch 'nesc58-release-1.5.0' into release-1.5.0 2021-02-19 12:59:46 +01:00
Bertrand Gouny c9b2704d8c Merge branch 'release-1.5.0' of https://github.com/nesc58/docker-openldap into nesc58-release-1.5.0 2021-02-19 12:59:34 +01:00
Bertrand Gouny 80b9afb242 Merge branch 'timgates42-bugfix_typos' into release-1.5.0 2021-02-19 12:58:52 +01:00
Nesc58 8b4d01b670 feat: use specific package version for ldap-utils and slapd-contrib as well - naming fixed 2021-02-19 08:27:33 +01:00
Nesc58 5fd60c4ca1 feat: use specific package version for ldap-utils and slapd-contrib as well 2021-02-19 08:12:51 +01:00
Tim Gates 9cb2413dff Fix a few small typos 2021-02-19 08:57:04 +11:00
Bertrand Gouny c00a02d584 refacto: admin password 2021-02-18 16:36:18 +01:00
Bertrand Gouny 135f4ecb6f Merge branch 'dbck-gitlab-ci-service-seeding' into release-1.5.0 2021-02-18 15:56:20 +01:00
Bertrand Gouny ef475dd5c1 feat: update default schemas 2021-02-18 15:47:13 +01:00
Bertrand Gouny 5253671c16 feat: add slapd package version 2021-02-18 14:34:53 +01:00
Bertrand Gouny 3f6950db0e fix: restart container with no cn=admin 2021-02-18 14:33:27 +01:00
Bertrand Gouny bf7c6eaf0d fix: test 2021-02-18 14:32:31 +01:00
Bertrand Gouny 1939b9ebfa docs: v1.5.0 2021-02-14 13:55:13 +01:00
Bertrand Gouny 73595a94a7 Merge branch 'sistason-feature/allow-own-replication-config' into release-1.5.0 2021-02-14 13:52:41 +01:00
Bertrand Gouny 6d34b3b4d5 Merge branch 'joshuacox-FixingApiVersionInUsingSecrets' into release-1.5.0 2021-02-14 12:34:26 +01:00
Bertrand Gouny cab1ed24ca Merge branch 'heidemn-fix-expired-default-ca' into release-1.5.0 2021-02-14 12:30:18 +01:00
Bertrand Gouny 13d112dbd7 Merge branch 'Os-carsun-stable' into release-1.5.0 2021-02-14 12:27:40 +01:00
Bertrand Gouny 37b95f0db4 Merge branch 'vivacarvajalito-stable' into release-1.5.0 2021-02-14 12:25:18 +01:00
Bertrand Gouny 10a15916ba [twgit] Init release 'release-1.5.0'. 2021-02-14 12:21:40 +01:00
Kai ef6a13e6cc fixes #532 by allowing to set LDAP_REPLICATION=own to provide own replcation settings via custom bootstrap ldifs 2021-02-13 19:47:03 +01:00