-
Notifications
You must be signed in to change notification settings - Fork 1k
RANGER-5078: Set ranger.usersync.ldap.referral=follow as default config #530
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
Conversation
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.
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_REFERRALdefault value in two install.properties scripts - Updated the Java config constant
DEFAULT_LGSYNC_REFERRALto"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 |
Copilot
AI
May 29, 2025
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.
[nitpick] Add a # default value: follow comment above this line and adjust spacing to match other properties (e.g., SYNC_LDAP_REFERRAL = follow).
| SYNC_PAGED_RESULTS_SIZE= | ||
| #LDAP context referral could be ignore or follow | ||
| SYNC_LDAP_REFERRAL =ignore | ||
| SYNC_LDAP_REFERRAL=follow |
Copilot
AI
May 29, 2025
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.
[nitpick] Add a # default value: follow comment above this line and align the spacing around = with the surrounding property definitions.
What changes were proposed in this pull request?
Changes the default value of
ranger.usersync.ldap.referralfromignoretofollowHow was this patch tested?
Verified that the config parameter is populated correctly in
ranger-ugsync-site.xmlin docker deployment ofranger-usersync.