-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
chown missing on TLS_CA_CRT_FILENAME #42
Comments
Have you tried the environment variable |
This var was not set in my initial configuration. I added it but same error: |
Can you tell me the permissions of the files when they are outside of the container, and inside of the container? Your approach with on container startup will work as well, this image is extendable to do that sort of thing by adding a bash script in /assets/custom-scripts/ to perform your chmod/chown function. That would be a last resort though. Is there something from another container changing the permissiosn of the certificates as well? |
We used tiredofit/openldap version 6.6.1 and no such issue. Moving to 7.1.16 we falled in this problem. Without the workaround, the file is in root:root in both container and host. This host is dedicated to LDAP, nothing else running (just tiredofit/openldap-fusiondirectory:7.0.4 and tiredofit/fusiondirectory:2.6.2). |
Right, so something definitely changed in the image from 6.6.1 to 7.1.16. See ver 6.8.0:
Then 6.8.2
Of course 7.x.x was a major release and I changed a whole bunch of TLS settings as well. See the thread that prompted the change here: #17 |
Summary
When ENABLE_TLS is TRUE, we get a permission denied on TLS_CA_CRT_FILENAME loading during TLS negociation.
Steps to reproduce
Set ENABLE_TLS to TRUE, make sure you have your certificates on the server, run a ldapsearch on ldaps
What is the expected correct behavior?
Succesful ldapsearch
Relevant logs and/or screenshots
Sorry, no logs.
Environment
Possible fixes
A possible workaround is to run "docker exec -it openldap chown ldap:ldap $TLS_CA_CRT_FILENAME" right after container startup.
The text was updated successfully, but these errors were encountered: