You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Ankita Sinha (JIRA)" <ji...@apache.org> on 2017/07/27 09:40:00 UTC

[jira] [Comment Edited] (RANGER-1690) Ranger usersync created error users. Ranger usersync got System Virtual User Group Name instead of real group name when built the unix user list.

    [ https://issues.apache.org/jira/browse/RANGER-1690?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16103003#comment-16103003 ] 

Ankita Sinha edited comment on RANGER-1690 at 7/27/17 9:39 AM:
---------------------------------------------------------------

Hi [~peng.jianhua], the setup is breaking due to extra character at the end of the line in ranger-ugsync-default.xml. I am attaching the patch for the same in this jira and raised the [review request|https://reviews.apache.org/r/61175/diff/1#index_header]. Can you please review.


was (Author: ankita.sinha):
Hi [~peng.jianhua], the setup is breaking due to extra character at the end of the line in ranger-ugsync-default.xml. I am attaching the patch for the same in this jira and raise the [review request|https://reviews.apache.org/r/61175/diff/1#index_header]. Can you please review.

> Ranger usersync created error users. Ranger usersync got System Virtual User Group Name instead of real group name when built the unix user list. 
> --------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: RANGER-1690
>                 URL: https://issues.apache.org/jira/browse/RANGER-1690
>             Project: Ranger
>          Issue Type: Bug
>          Components: usersync
>            Reporter: peng.jianhua
>            Assignee: Ankita Sinha
>              Labels: patch
>             Fix For: 1.0.0
>
>         Attachments: 0001-RANGER-1690-Ranger-usersync-created-error-users.-Ran.patch, RANGER-1690.patch
>
>
> The ranger.usersync.unix.minGroupId is not set default value. Like ranger.usersync.unix.minUserId, it should be set default value. Following variable equals to 0 when built the unix user list. 
> minimumGroupId=Integer.parseInt(config.getMinGroupId());
> Ranger usersync may get System Virtual User Group Name instead of real group name.
> if (numGroupId < minimumGroupId)
>     continue;
> String groupName = groupId2groupNameMap.get(gid);
> This result is that the Ranger usersync created error users. 
> http://www.archivum.info/debian-bugs-closed@lists.debian.org/2006-03/03888/Bug-333706-marked-as-done-(useradd-lacks-r-option).html



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)