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

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

eubnara
Copy link

@eubnara eubnara commented Jan 22, 2025

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.

Map<String, String> groupOtherAttrs = groupInfo.getOtherAttrsMap();
String groupDN = groupOtherAttrs != null ? groupOtherAttrs.get(UgsyncCommonConstants.FULL_NAME) : null;

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())) {
Copy link
Author

@eubnara eubnara Jan 22, 2025

Choose a reason for hiding this comment

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

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

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.

1 participant