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] Allow to optionally set olcSuffix via LDAP_SUFFIX env var #67360

Merged
merged 1 commit into from
Jun 6, 2024
Merged

[bitnami/openldap] Allow to optionally set olcSuffix via LDAP_SUFFIX env var #67360

merged 1 commit into from
Jun 6, 2024

Conversation

xadhoom
Copy link
Contributor

@xadhoom xadhoom commented May 31, 2024

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

@xadhoom
Copy link
Contributor Author

xadhoom commented Jun 1, 2024

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.

@javsalgar javsalgar changed the title Allow to optionally set olcSuffix via LDAP_SUFFIX env var [bitnami/openldap] Allow to optionally set olcSuffix via LDAP_SUFFIX env var Jun 3, 2024
@javsalgar javsalgar added verify Execute verification workflow for these changes in-progress labels Jun 3, 2024
@github-actions github-actions bot removed the triage Triage is needed label Jun 3, 2024
@github-actions github-actions bot removed the request for review from javsalgar June 3, 2024 08:13
@github-actions github-actions bot requested a review from migruiz4 June 3, 2024 08:13
Copy link
Member

@migruiz4 migruiz4 left a 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?

Co-authored-by: Miguel Ruiz <miruiz@vmware.com>
Signed-off-by: Matteo Brancaleoni <mbrancaleoni@gmail.com>
@xadhoom
Copy link
Contributor Author

xadhoom commented Jun 5, 2024

Could you please take a look at my comment?

Fixed and pushed, thanks.

Copy link
Member

@migruiz4 migruiz4 left a 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!

@carrodher carrodher merged commit 878af59 into bitnami:main Jun 6, 2024
10 checks passed
@xadhoom xadhoom deleted the add_ldap_suffix_env_var branch June 6, 2024 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
openldap solved verify Execute verification workflow for these changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants