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

Sailaja Polavarapu edited comment on RANGER-684 at 10/13/15 6:54 PM:
---------------------------------------------------------------------

Introducing two additional (custom) usersync properties:
ranger.usersync.username.handler.expr
ranger.usersync.groupname.handler.expr

If the properties are defined, they should be used to transform user/group name 
after it is retrieved from the source.

The value for these properties should be in the following format (similar to 
Sed format):
“s/regex/replacement/g” 

s – stands for substitution and is mandatory
/ - delimiter and is mandatory
Regex – regular expression to match
Replacement – value to replace and is optional. If not specified, the found 
pattern is removed from the resulting string.
g – for replacing all the occurrences. It is optional and if not specified, 
default to “g” as well.


was (Author: spolavarapu):
Introducing two additional (custom) properties:
ranger.usersync.username.handler.expr
ranger.usersync.groupname.handler.expr

If the properties are defined, they should be used to transform user/group name 
after it is retrieved from the source.

The value for these properties should be in the following format (similar to 
Sed format):
“s/regex/replacement/g” 

s – stands for substitution and is mandatory
/ - delimiter and is mandatory
Regex – regular expression to match
Replacement – value to replace and is optional. If not specified, the found 
pattern is removed from the resulting string.
g – for replacing all the occurrences. It is optional and if not specified, 
default to “g” as well.

> Ranger Usersync - Add Ability to transform user/group names
> -----------------------------------------------------------
>
>                 Key: RANGER-684
>                 URL: https://issues.apache.org/jira/browse/RANGER-684
>             Project: Ranger
>          Issue Type: Improvement
>    Affects Versions: 0.4.0, 0.5.0
>            Reporter: Velmurugan Periasamy
>            Assignee: Sailaja Polavarapu
>            Priority: Critical
>             Fix For: 0.5.1, 0.6.0
>
>
> Ensure the UserSync is capable of transforming user/group names from LDAP/AD 
> source. Probably by allowing custom mapping ( like space to underscore) 



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

Reply via email to