krishnamuttevi commented on code in PR #1162:
URL: https://github.com/apache/ranger/pull/1162#discussion_r3822815919


##########
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:
   Please check the below the below doc for the testcaes which was verified by 
runtime
   
   [Test cases for the 
RANGER-5110_.pdf](https://github.com/user-attachments/files/31269816/Test.cases.for.the.RANGER-5110_.pdf)
   



-- 
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]

Reply via email to