-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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] Allow to optionally set olcSuffix via LDAP_SUFFIX env var #67360
Conversation
Additional comment: the assignment expression of the new var is different from the others, to allow to set the empty value, that's setting olcSuffix to the empty string, which is legit and allows to store any tree in the underlying database. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much for your contribution @xadhoom!
Could you please take a look at my comment?
bitnami/openldap/2.6/debian-12/rootfs/opt/bitnami/scripts/libopenldap.sh
Outdated
Show resolved
Hide resolved
bitnami/openldap/2.5/debian-12/rootfs/opt/bitnami/scripts/libopenldap.sh
Outdated
Show resolved
Hide resolved
Co-authored-by: Miguel Ruiz <miruiz@vmware.com> Signed-off-by: Matteo Brancaleoni <mbrancaleoni@gmail.com>
Fixed and pushed, thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, thank you for your contribution!
Description of the change
Right now the olcSuffix config is fixed to the
LDAP_ROOT
value. While this is most of the times reasonable, those values are not strictly related, being olcSuffix the prefix of the queries handled by the internal mdb backend.This change allows to optionally set the LDAP olcSuffix to a different value from
LDAP_ROOT
. The change does not break existing behaviour.Benefits
In multi tenant scenarios you end to have multiple trees, right now you either have to use a container for each tree (which is not easy if you create those trees dynamically), or provide a script on container init that does this change. Or, worse, prefix all those trees with a common one.
By allowing to set the olcSuffix on the container, simplifies a lot usage in those scenarios.
Possible drawbacks
None