Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.2.0
-
None
-
potential NPE
Description
— a/ugsync/src/main/java/org/apache/ranger/unixusersync/process/PolicyMgrUserGroupBuilder.java
+++ b/ugsync/src/main/java/org/apache/ranger/unixusersync/process/PolicyMgrUserGroupBuilder.java
@@ -661,7 +661,7 @@ private void computeUserDelta(Map<String, Map<String, String>> sourceUsers) {
} else {
XUserInfo oldUser = userCache.get(userName);
Map<String, String> oldUserAttrs = oldUser.getOtherAttrsMap();
String oldUserDN = oldUserAttrs.get(UgsyncCommonConstants.FULL_NAME);
if (StringUtils.equalsIgnoreCase(userDN, oldUserDN)
&& StringUtils.equalsIgnoreCase(oldUserAttrs.get(UgsyncCommonConstants.SYNC_SOURCE), newUserAttrs.get(UgsyncC
&& StringUtils.equalsIgnoreCase(oldUserAttrs.get(UgsyncCommonConstants.LDAP_URL), newUserAttrs.get(UgsyncComm
Attachments
Attachments
Issue Links
- is related to
-
RANGER-980 User sync does not delete users if they do not exist anymore
- Resolved
- links to