FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

RANGER-5110: Update the FQDN of users and groups whenever it changes by eubnara · Pull Request #516 · apache/ranger · GitHub

/ ranger Public

RANGER-5110: Update the FQDN of users and groups whenever it changes - #516

Open
eubnara wants to merge 1 commit into
apache:masterfrom
eubnara:RANGER-5110
Open

RANGER-5110: Update the FQDN of users and groups whenever it changes#516
eubnara wants to merge 1 commit into
apache:masterfrom
eubnara:RANGER-5110

Conversation

eubnara commented Jan 22, 2025

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

If the FQDN of users and groups, usersync doesn't update it properly and if ranger.usersync.deletes.enabled is true, those users and groups becomes hidden. It should be handled properly.

How was this patch tested?

Manual test on private internal Hadoop cluster.

if (StringUtils.isNotEmpty(groupDN) && !sourceGroups.containsKey(groupDN)
&& StringUtils.equalsIgnoreCase(groupOtherAttrs.get(UgsyncCommonConstants.SYNC_SOURCE), currentSyncSource) &&
StringUtils.equalsIgnoreCase(groupOtherAttrs.get(UgsyncCommonConstants.LDAP_URL), ldapUrl)) {
if (ISHIDDEN.equals(groupInfo.getIsVisible())) {

eubnara Jan 22, 2025
edited
Loading

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This is bug introduced by typo. Fix it also in this PR.

Copy link
Copy Markdown
Contributor

+1 . Is there any plan to review and merge this? @mneethiraj

We hit this bug in production (Ranger 2.7.0 + LDAP sync, deletes.enabled=true).
A user was moved to another OU, and usersync marked the user as hidden and removed all group memberships.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL