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

Bolke de Bruin edited comment on RANGER-827 at 2/7/16 9:20 PM:
---------------------------------------------------------------

This latest version of the patch includes tests. 

# It should work on linux, mac os x not so yet due to complexity in parsing 
"dscl" output. I'm not sure if it is needed as a target platform, for 
development it is of course nice.
# Tests are reliant on a working platform, as mocking it seems unreasonable hard
# Creating the tests required some changes to UserGroupSyncConfig to make some 
methods accessible

I would like to some feedback on this.


was (Author: bolke):
Including tests now

> Use system supplied mechanism to get users and groups on unix
> -------------------------------------------------------------
>
>                 Key: RANGER-827
>                 URL: https://issues.apache.org/jira/browse/RANGER-827
>             Project: Ranger
>          Issue Type: Improvement
>          Components: usersync
>    Affects Versions: 0.5.1
>            Reporter: Bolke de Bruin
>            Assignee: Bolke de Bruin
>              Labels: integration, pam, sssd, sync
>             Fix For: 0.6.0
>
>         Attachments: 0001-RANGER-827-Improve-unix-usersync.patch, 
> 0002-RANGER-827-Improve-unix-usersync.patch, 
> 0003-RANGER-827-Improve-unix-usersync.patch, usersync.patch
>
>
> The unix user sync currently reads /etc/passwd /etc/groups . This is often 
> not a reflection of users and groups available on a system especially when 
> nsswitch is configured (eg. sssd, ldap etc).
> Secondly in some cases groups will contain user names that are not returned 
> with "getent passwd", especially "external users" and it is required to add 
> these using the group information.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to