Skip to content

Conversation

@kumaab
Copy link
Contributor

@kumaab kumaab commented Feb 11, 2025

What changes were proposed in this pull request?

Changes the default value of ranger.usersync.ldap.referral from ignore to follow

How was this patch tested?

Verified that the config parameter is populated correctly in ranger-ugsync-site.xml in docker deployment of ranger-usersync.

@kumaab kumaab self-assigned this Feb 11, 2025
@kumaab kumaab requested a review from Copilot May 29, 2025 21:33
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Updates the default LDAP referral behavior in the UserSync component from “ignore” to “follow” across installation scripts and code.

  • Changed SYNC_LDAP_REFERRAL default value in two install.properties scripts
  • Updated the Java config constant DEFAULT_LGSYNC_REFERRAL to "follow"

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
unixauthservice/scripts/install.properties Set SYNC_LDAP_REFERRAL default to follow
ugsync/src/main/java/org/apache/ranger/unixusersync/config/UserGroupSyncConfig.java Updated DEFAULT_LGSYNC_REFERRAL to "follow"
dev-support/ranger-docker/scripts/ranger-usersync-install.properties Set SYNC_LDAP_REFERRAL default to follow
Comments suppressed due to low confidence (1)

ugsync/src/main/java/org/apache/ranger/unixusersync/config/UserGroupSyncConfig.java:126

  • Add or update a unit or integration test to verify that the default LDAP referral is now set to follow, preventing future regressions.
private static final String  DEFAULT_LGSYNC_REFERRAL                                             = "follow";

SYNC_PAGED_RESULTS_SIZE=
#LDAP context referral could be ignore or follow
SYNC_LDAP_REFERRAL =ignore
SYNC_LDAP_REFERRAL=follow
Copy link

Copilot AI May 29, 2025

Choose a reason for hiding this comment

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

[nitpick] Add a # default value: follow comment above this line and adjust spacing to match other properties (e.g., SYNC_LDAP_REFERRAL = follow).

Copilot uses AI. Check for mistakes.
SYNC_PAGED_RESULTS_SIZE=
#LDAP context referral could be ignore or follow
SYNC_LDAP_REFERRAL =ignore
SYNC_LDAP_REFERRAL=follow
Copy link

Copilot AI May 29, 2025

Choose a reason for hiding this comment

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

[nitpick] Add a # default value: follow comment above this line and align the spacing around = with the surrounding property definitions.

Copilot uses AI. Check for mistakes.
@kumaab kumaab merged commit 32c90a3 into apache:master Jun 19, 2025
3 checks passed
@kumaab kumaab deleted the ranger_5078 branch June 19, 2025 16:02
kumaab added a commit that referenced this pull request Jul 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants