krishnamuttevi commented on code in PR #1162:
URL: https://github.com/apache/ranger/pull/1162#discussion_r3822767926
##########
ugsync/src/main/java/org/apache/ranger/unixusersync/process/PolicyMgrUserGroupBuilder.java:
##########
@@ -838,15 +850,25 @@ private void computeUserDelta(Map<String, Map<String,
String>> sourceUsers) {
noOfModifiedGroups++;
userNameMap.put(userDN, userName);
} else {
- if (MapUtils.isNotEmpty(curUserAttrs) &&
!StringUtils.equalsIgnoreCase(userDN, curUserDN)) { // skip update
- // Same username with different DN already exists
- LOG.debug("[{}]: SyncSource update skipped, current
user DN = {} new user DN = {}", userName, curUserDN, userDN);
-
- if (StringUtils.equalsIgnoreCase(curUserAttrsStr,
newUserAttrsStr)) {
- userNameMap.put(userDN, userName);
+ boolean isLdapAdSync =
StringUtils.equalsIgnoreCase(newSyncSource, "LDAP/AD")
Review Comment:
Have updated in the following commit.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]