containers
containers copied to clipboard
[bitnami/openldap] Load access control files at startup
Name and Version
bitnami/openldap:2.6.3
What is the problem this feature will solve?
I'm trying to allow self write access. It works, if I run the following command after container start
ldapmodify -Y EXTERNAL -H "ldapi:///" -f selfwrite.ldif
selfwrite.ldif
contains the following text:
dn: olcDatabase={2}mdb,cn=config
changetype: modify
replace: olcAccess
olcAccess: {0}to * by self write by * read
Unfortunately I find no configuration option to load this file at container start.
What is the feature you are proposing to solve the problem?
It would be nice to have a directory like the one referenced by LDAP_CUSTOM_LDIF_DIR, where LDIFs for ldapmodify could be placed.
What alternatives have you considered?
No response
Thank you for your suggestion @dirkweil!
The bitnami/openldap
has support for initScripts mounted at /docker-entrypoint-initdb.d
, but only .sh
files are supported.
As a workaround, you could use a *.sh
that executed the *.ldif
files mounted elsewhere, but I think it could be a nice feature for the image to support and run *.ldif
files, would you like to contribute by sending a pull request?
This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.
Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.
I can't make above ldapmodify command work in those sh scripts, getting "ldap_sasl_interactive_bind: Can't contact LDAP server (-1)". What is the correct host?
The host should be localhost AFAIK, maybe there were issues in the startup