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] feat: pldap and pldaps support #70999

Merged
merged 4 commits into from
Sep 4, 2024

Conversation

Arano-kai
Copy link
Contributor

Description of the change

Ability to enable pldap(s) protocols.

Benefits

The pldap(s) is required when LDAP servers is run behind LB proxy. The proxy protocol v2 allow reveal the real client IP on LDAP server side in such setup.

Possible drawbacks

Previous deployments not affected, this feature is disabled by default.
In new deployments that want use pldap(s) and replication, user must provide additional config to move proxy protocol enabled ports to non-default values, since replication can't run on pldap(s).

Applicable issues

None.

Additional information

The /opt/bitnami/scripts/openldap/run.sh are refactored to allow independent configuration and advanced logic for each startup flag. This changes are BASH specific and require additional patch if container moves to other shell.
Additional check for LDAP_PORT_NUMBER and LDAP_LDAPS_PORT_NUMBER is set, which should not affect valid deployments.

@github-actions github-actions bot added openldap triage Triage is needed labels Aug 16, 2024
@github-actions github-actions bot requested a review from carrodher August 16, 2024 10:08
…flags

- Reduce dupes
- Allow advanced logic for each flag arguments

Signed-off-by: Arano-kai <[email protected]>
Support for 'proxied LDAP' and 'proxied LDAP over SSL'.
Read 'https://www.openldap.org/doc/admin26/runningslapd.html#Command-Line%20Options' for additional info.

Signed-off-by: Arano-kai <[email protected]>
When the debugging is on, show what will actually run

Signed-off-by: Arano-kai <[email protected]>
Assert that port related values are positive int

Signed-off-by: Arano-kai <[email protected]>
@Arano-kai Arano-kai force-pushed the feature/proxy_protocol branch from 0bdea94 to 9ef7459 Compare August 16, 2024 10:17
@carrodher carrodher added verify Execute verification workflow for these changes in-progress labels Aug 17, 2024
@github-actions github-actions bot removed the request for review from carrodher August 17, 2024 10:04
@github-actions github-actions bot removed the triage Triage is needed label Aug 17, 2024
@github-actions github-actions bot requested a review from andresbono August 17, 2024 10:04
Copy link

github-actions bot commented Sep 2, 2024

This Pull Request 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. Thank you for your contribution.

@github-actions github-actions bot added the stale 15 days without activity label Sep 2, 2024
@andresbono
Copy link
Contributor

Hi @Arano-kai, sorry for the late reply. I will review the PR and I will get back to you soon. Thank you for your contribution and patience!

@andresbono andresbono removed the stale 15 days without activity label Sep 2, 2024
Copy link
Contributor

@andresbono andresbono left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left some suggestions, could you please take a look at them? Thanks!

Copy link
Contributor

@andresbono andresbono left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you for your contribution!

@andresbono andresbono merged commit 1cf9fe6 into bitnami:main Sep 4, 2024
36 checks passed
@Arano-kai Arano-kai deleted the feature/proxy_protocol branch September 12, 2024 14:44
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.

3 participants