Skip to main content
ambud_sharma1
Gold ⭐️
November 1, 2017

Ranger User Sync Issues due to Case Difference

  • October 5, 2026 at 9:16 AM
  • 0 replies
  • 6320 views
  • Translate All

Problem:

If you have an AD/LDAP environment and using HDP with Ranger, it's critical to review the case in which usernames and group ids are stored in your Directory Services environment. Ranger authorization is case sensitive therefore if the username / group id doesn't match the one returned from Directory (AD/LDAP) authorization will be denied

Solution:

To solve this problem Ranger offers 2 parameters that can be set via Ambari. This should ideally be done at install time to avoid the need to re-sync all users. Ranger usersync properties for case conversion are:

  1. ranger.usersync.ldap.username.caseconversion
  2. ranger.usersync.ldap.groupname.caseconversion

You can set these properties to lower or upper; this will make sure that Ranger will store the usernames and groups in the above specified format in it's local database therefore when users login their authorization parameter will match correctly.