Repository navigation
chore(deps): update osixia/openldap to 2.6.15 - #995
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 50 minutes. View limit details
No actionable comments were generated in the recent review. Walkthrough
Change: Bug fix Merge Risk:
|
|
CI on e02643a: every compose-based job passes, including the four e2e shards, the integration and unit tests and the schema drift check. |
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
osixia/openldap 2 is a rewrite of the 1.x image with new variables, paths and entrypoint. The Renovate PR #983 only changed the tag, so ldap-dev exited with 127 (/container/tool/run no longer exists) and every compose-based CI job failed on the dependency. Configure ldap-dev with the 2.x bootstrap variables and keep the contract the app, docs and tests use: port 389 (OPENLDAP_URLS), suffix dc=dev,dc=local, root DN cn=admin with LDAP_ADMIN_PASSWORD, read-only DN cn=readuser with LDAP_READONLY_USER_*. The seed LDIF is mounted into the image's data/custom directory instead of being copied by an entrypoint override, and the healthcheck reads the new variables. 2.x skips bootstrap when its directories hold data and cannot load a 1.x config (slaptest fails on back_mdb), so the service uses new volumes ldap-dev-v2-data and ldap-dev-v2-config. Signed-off-by: Sebastian Mendel <info@sebastianmendel.de>
e02643a to
9a95a0a
Compare
|
|
Self-review: 9a95a0a This pull request requires a review and no bot review is in flight; a review by the author satisfies that requirement. The diff on this head was reviewed by the PR author; this comment is the on-the-record attestation the merge gate reads back. It stops matching on the next push. |



When merged, the
ldap-devcompose service runs osixia/openldap 2.6.15 with the 2.x bootstrap variables, and starts with the seeded dev users; with only the tag changed, as in #983, the container exits with 127. Developers get a freshly seeded LDAP on new volumesldap-dev-v2-dataandldap-dev-v2-config; the oldldap-dev-dataandldap-dev-configvolumes are no longer used and can be removed.Supersedes #983 (same tag and digest).
Why #983 fails
osixia/openldap 2 is a rewrite of the 1.x image (upstream README: "v2 is a breaking release", no automatic migration of v1 deployments). #983 changed only the tag, so the service kept the 1.x entrypoint override, which calls
/container/tool/run. That file does not exist in 2.x; the container exits with 127 and every job that startsldap-devthroughdepends_onstops withdependency failed to start: container timetracker-ldap-dev-1 exited (127)(8 of 8 failing jobs in run 45611515992).The 2.x line is maintained: 2.6.15 is a non-prerelease published on 2026-11-23, Docker Hub lists the tags
2.6.15,2.6,2andlatest(amd64, arm64) from the same day, and the repository is not archived. Renovate also holds #983 withrenovate/stability-days; this PR ships the release three days after publication, ahead of that wait.What changes in compose.yml
OPENLDAP_BOOTSTRAP_SUFFIX,OPENLDAP_BOOTSTRAP_DATA_ROOT_PASSWORD_HASHEDandOPENLDAP_BOOTSTRAP_DATA_READONLY*replace the 1.xLDAP_*variables. The host-side overridesLDAP_ADMIN_PASSWORDandLDAP_READONLY_USER_USERNAME/LDAP_READONLY_USER_PASSWORDkeep working.*_PASSWORD_HASHEDvalues are the plain dev passwords. slapd stores and compares a value without{SCHEME}prefix as cleartext, as the 1.x seed LDIF already did for the users.OPENLDAP_URLS=ldap://:389 ldapi:///keeps port 389 (2.x listens on 3890 by default), so.env, the docs andLdapClientServiceIntegrationTeststay unchanged. Host port 3389 is unchanged.docker/ldap/users-only.ldifis mounted read-only into the image'sdata/custombootstrap directory; the entrypoint override is gone.uid=unittest.slaptestfails withlt_dlopenext failed: (back_mdb) file not foundand the container exits with 1).Testing
Locally with the e2e image of main and the CI commands:
docker compose up -d --wait ldap-devafter a 1.xldap-devhad run under the same project name: healthy.bin/phpunit --testsuite integration,controller,api-functional,mcp:Tests: 941, Assertions: 5795, OK (deprecations only, pre-existing).tests/Service/Ldap/LdapClientServiceIntegrationTest.php: 15 tests OK. WithLDAP_ADMIN_PASSWORD=mutatedon fresh volumes it fails with 9 errors (Invalid credentials).unhealthy.npx playwright test e2e/login.spec.ts: 7 passed. The full e2e suite was not run locally; CI runs it.