Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Community Articles

Find and share helpful community-sourced technical articles.
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!
Labels (1)
avatar
Expert 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

2,926 Views
Version history
Last update:
‎03-01-2017 06:42 PM
Updated by:
Contributors