Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bitnami/openldap] Failure to start when tls enabled #42535

Closed
Horstexplorer opened this issue Jul 27, 2023 · 2 comments
Closed

[bitnami/openldap] Failure to start when tls enabled #42535

Horstexplorer opened this issue Jul 27, 2023 · 2 comments
Assignees
Labels
openldap solved tech-issues The user has a technical issue about an application triage Triage is needed

Comments

@Horstexplorer
Copy link
Contributor

Horstexplorer commented Jul 27, 2023

Name and Version

bitnami/openldap:2.6

What architecture are you using?

amd64

What steps will reproduce the bug?

  1. create certificates using acme.sh (either ec / rsa)
  2. mount and configure certificates through env vars as described in the readme
  3. run the container

What is the expected behavior?

container should initialize successfully and create or update its configurations

What do you see instead?

openldap  |  22:33:48.46 INFO  ==> ** Starting LDAP setup **
openldap  |  22:33:48.48 INFO  ==> Validating settings in LDAP_* env vars
openldap  |  22:33:48.49 INFO  ==> Initializing OpenLDAP...
openldap  |  22:33:48.50 INFO  ==> Creating LDAP online configuration
openldap  |  22:33:48.51 INFO  ==> Starting OpenLDAP server in background
openldap  |  22:33:49.52 INFO  ==> Configure LDAP credentials for admin user
openldap  |  22:33:49.53 INFO  ==> Configuring TLS
openldap exited with code 0

Additional information

the container exits with code 0 and no additional error messages, regardless of the configured protocol level.
after a manual restart of the container it is able to start "successfully", however neither are the configured tls certificates working, nor was any scheme initialized.
this issue may relate to #36613, #27792

@Horstexplorer Horstexplorer added the tech-issues The user has a technical issue about an application label Jul 27, 2023
@github-actions github-actions bot added the triage Triage is needed label Jul 27, 2023
@javsalgar javsalgar changed the title Failure to start when tls enabled [bitnami/openldap] Failure to start when tls enabled Jul 31, 2023
@javsalgar
Copy link
Contributor

Hi!

Thank you for using Bitnami containers. Could you launch the container with BITNAMI_DEBUG=true to see what the error is?

@Horstexplorer
Copy link
Contributor Author

Thank you for your response!
Starting the container with the debug flag enabled revealed a permission issue reading the key file. After changing the way the acme.sh container provided the certificates I managed to resolve this behaviour.
OpenLDAP now initializes and runs nicely :)
I assume there is no built in logic to restart slapd once the certificates are being renewed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
openldap solved tech-issues The user has a technical issue about an application triage Triage is needed
Projects
None yet
Development

No branches or pull requests

2 participants