[GH-ISSUE #64] Not working after recent upgrade from buster to bookworm #42

Closed
opened 2026-02-27 16:47:45 +03:00 by kerem · 1 comment
Owner

Originally created by @edwardfung123 on GitHub (Aug 18, 2025).
Original GitHub issue: https://github.com/rroemhild/docker-test-openldap/issues/64

Thank you for updating the image to use bookworm!

However, the image seems broken after the update. Cannot search or bind to the user professor.

I am trying to run the example code from the README.

The command to start the server:

docker pull ghcr.io/rroemhild/docker-test-openldap:master
docker run --rm -p 10389:10389 -p 10636:10636 ghcr.io/rroemhild/docker-test-openldap:master

The command to test:

ldapsearch -H ldap://localhost:10389 -x -b "ou=people,dc=planetexpress,dc=com" -D "cn=admin,dc=planetexpress,dc=com" -w GoodNewsEveryone "(objectClass=inetOrgPerson)"

The output.

# extended LDIF
#
# LDAPv3
# base <ou=people,dc=planetexpress,dc=com> with scope subtree
# filter: (objectClass=inetOrgPerson)
# requesting: ALL
#

# search result
search: 2
result: 32 No such object
matchedDN: dc=planetexpress,dc=com

# numResponses: 1

If I change the image tag in the command to start the server to v2.4.0, it works again.

Not an expert in openldap. Maybe some behaviour change introduced in openldap on bookworm?

Originally created by @edwardfung123 on GitHub (Aug 18, 2025). Original GitHub issue: https://github.com/rroemhild/docker-test-openldap/issues/64 Thank you for updating the image to use bookworm! However, the image seems broken after the update. Cannot search or bind to the user `professor`. I am trying to run the example code from the README. The command to start the server: ```bash docker pull ghcr.io/rroemhild/docker-test-openldap:master docker run --rm -p 10389:10389 -p 10636:10636 ghcr.io/rroemhild/docker-test-openldap:master ``` The command to test: ```bash ldapsearch -H ldap://localhost:10389 -x -b "ou=people,dc=planetexpress,dc=com" -D "cn=admin,dc=planetexpress,dc=com" -w GoodNewsEveryone "(objectClass=inetOrgPerson)" ``` The output. ``` # extended LDIF # # LDAPv3 # base <ou=people,dc=planetexpress,dc=com> with scope subtree # filter: (objectClass=inetOrgPerson) # requesting: ALL # # search result search: 2 result: 32 No such object matchedDN: dc=planetexpress,dc=com # numResponses: 1 ``` If I change the image tag in the command to start the server to `v2.4.0`, it works again. Not an expert in openldap. Maybe some behaviour change introduced in openldap on bookworm?
kerem closed this issue 2026-02-27 16:47:45 +03:00
Author
Owner

@rroemhild commented on GitHub (Aug 18, 2025):

Hi @edwardfung123,

thanks for the report! The hdb database backend was removed in OpenLDAP 2.5. The commit 7835fbb changes the database backend to mdb.

<!-- gh-comment-id:3197551971 --> @rroemhild commented on GitHub (Aug 18, 2025): Hi @edwardfung123, thanks for the report! The hdb database backend was removed in OpenLDAP 2.5. The commit [7835fbb](https://github.com/rroemhild/docker-test-openldap/commit/7835fbbea3fadcbae4be9044b160b0b9557f1fbc) changes the database backend to mdb.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/docker-test-openldap#42
No description provided.