Community Articles
Find and share helpful community-sourced technical articles
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.
Labels (1)
Contributor

When synchronizing users from AD or LDAP to Ranger using usersync, It is possible that there are spaces in usernames.

These spaces in user names and Group Names may be replaced by SSSD to use underscores. (Example SSSD config section below.

[sssd]

override_space = _

Ranger needs to synchronize users similarly to avoid issues in access permission setup.

To enable Ranger to perform this conversion , the following flags can be added to "Ranger --> Configs --> Advanced --> custom ranger-ug-site" By adding 2 properties

ranger.usersync.mapping.groupname.regex, ranger.usersync.mapping.username.regex

These two properties can be set to

s/ /_/g

After setting these properties restart ranger service using Ambari and then restart Ranger user sync.

User sync will add new user names with Underscores in the user name. Older usernames and group names with Spaces will need manual cleanup.

Note: This feature is available only From Ranger 0.5.1 version of Ranger.

For more details, please refer to

https://issues.apache.org/jira/browse/RANGER-684

831 Views
Don't have an account?
Coming from Hortonworks? Activate your account here
Version history
Revision #:
1 of 1
Last update:
‎03-01-2017 06:42 PM
Updated by:
 
Contributors
Top Kudoed Authors