[GH-ISSUE #42] Slapd fails to start with new build image #22

Closed
opened 2026-02-27 16:47:41 +03:00 by kerem · 4 comments
Owner

Originally created by @paulkitt on GitHub (Sep 1, 2022).
Original GitHub issue: https://github.com/rroemhild/docker-test-openldap/issues/42

We build the actual state of the repo planing to make some small changes in the user/group structure.
When starting the image with no modifications slapd fails:

openldap             | 6310a7c3 @(#) $OpenLDAP: slapd  (May 14 2022 18:35:44) $
openldap             |  Debian OpenLDAP Maintainers <pkg-openldap-devel@lists.alioth.debian.org>
openldap             | 6310a7c4 hdb_db_open: database "dc=planetexpress,dc=com": database already in use.
openldap             | 6310a7c4 backend_startup_one (type=hdb, suffix="dc=planetexpress,dc=com"): bi_db_open failed! (-1)
openldap             | 6310a7c4 slapd stopped.
Originally created by @paulkitt on GitHub (Sep 1, 2022). Original GitHub issue: https://github.com/rroemhild/docker-test-openldap/issues/42 We build the actual state of the repo planing to make some small changes in the user/group structure. When starting the image with no modifications slapd fails: ``` openldap | 6310a7c3 @(#) $OpenLDAP: slapd (May 14 2022 18:35:44) $ openldap | Debian OpenLDAP Maintainers <pkg-openldap-devel@lists.alioth.debian.org> openldap | 6310a7c4 hdb_db_open: database "dc=planetexpress,dc=com": database already in use. openldap | 6310a7c4 backend_startup_one (type=hdb, suffix="dc=planetexpress,dc=com"): bi_db_open failed! (-1) openldap | 6310a7c4 slapd stopped. ```
kerem closed this issue 2026-02-27 16:47:41 +03:00
Author
Owner

@paulkitt commented on GitHub (Sep 1, 2022):

Anybody manages to work with the current master? The project is great and it would be awesome to find a way to work with it.

<!-- gh-comment-id:1234228161 --> @paulkitt commented on GitHub (Sep 1, 2022): Anybody manages to work with the current master? The project is great and it would be awesome to find a way to work with it.
Author
Owner

@rroemhild commented on GitHub (Sep 2, 2022):

This seems to be a problem with a previous error from ldapmodify while configure TLS:

Configure TLS...
+ ldapmodify -Y EXTERNAL -H ldapi:/// -f /opt/openldap/bootstrap/config/tls.ldif -Q
modifying entry "cn=config"
ldap_modify: Other (e.g., implementation specific) error (80)

The script exit early an does not shutdown the slapd process.

<!-- gh-comment-id:1235332297 --> @rroemhild commented on GitHub (Sep 2, 2022): This seems to be a problem with a previous error from ldapmodify while configure TLS: ``` Configure TLS... + ldapmodify -Y EXTERNAL -H ldapi:/// -f /opt/openldap/bootstrap/config/tls.ldif -Q modifying entry "cn=config" ldap_modify: Other (e.g., implementation specific) error (80) ``` The script exit early an does not shutdown the slapd process.
Author
Owner

@jskacel commented on GitHub (Oct 26, 2022):

Looks like the issue is because of missing /etc/ldap/ssl/fullchain.crt

<!-- gh-comment-id:1291704505 --> @jskacel commented on GitHub (Oct 26, 2022): Looks like the issue is because of missing `/etc/ldap/ssl/fullchain.crt`
Author
Owner

@jskacel commented on GitHub (Oct 26, 2022):

So.. if you remove these lines https://github.com/rroemhild/docker-test-openldap/blob/master/rootfs/opt/openldap/bootstrap/config/tls.ldif#L3-L5 and rebuild the image, it will start to work

Or you need to provide your certificates (with CA) and mount it to /etc/ldap/ssl

<!-- gh-comment-id:1291747099 --> @jskacel commented on GitHub (Oct 26, 2022): So.. if you remove these lines https://github.com/rroemhild/docker-test-openldap/blob/master/rootfs/opt/openldap/bootstrap/config/tls.ldif#L3-L5 and rebuild the image, it will start to work Or you need to provide your certificates (with CA) and mount it to `/etc/ldap/ssl`
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#22
No description provided.