mneethiraj commented on code in PR #903:
URL: https://github.com/apache/ranger/pull/903#discussion_r3019809025


##########
ugsync/src/main/java/org/apache/ranger/unixusersync/process/UnixUserGroupBuilder.java:
##########
@@ -330,6 +340,13 @@ private void buildUnixUserList(String command) throws 
Throwable {
                     continue;
                 }
 
+                if (validateUserName) {
+                    if (!isValidUserName(userName)) {
+                        LOG.warn("Ignoring Unix Username: [{}]: failed to 
confirm to validation-pattern: [{}]", userName, regExUserNameValidator);

Review Comment:
   @sneethiraj  - this could result in usernames having valid non-English 
characters (accent characters, CJK character sets) to be skipped with default 
configuration. This can break environments already have such user names and 
group names.



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