Skip to main content
dvillarreal
Gold ⭐️
December 26, 2016

How to limit the LDAP users that can log into the ranger admin user interface.

  • October 5, 2026 at 8:57 AM
  • 2 replies
  • 3565 views
  • Translate All

Below are some examples of how you would achieve this:

Case1: Restrict to users in a single group – In this example, only the users who are members of “scientist” group are only allowed to login to ranger admin. User search filter parameter would look something like this:

(&(sAMAccountName={0})(memberof=cn=scientist,ou=groups,dc=hwqe,dc=hortonworks,dc=com))

Case2: Restrict to users in multiple groups – In this example, only the users who are members of either “scientist” group OR “analyst” group are allowed to login to ranger admin. User search filter parameter would look something like this:

(&(sAMAccountName={0})(|((memberof=cn=scientist,ou=groups,dc=hwqe,dc=hortonworks,dc=com)(memberof=cn=analyst,ou=groups,dc=hwqe,dc=hortonworks,dc=com))))

Case3: Restrict to given list of users – In this example, only the users whose cn (or common name) starts with “sam r” are allowed to login to ranger admin. User search filter parameter would look something like this:

(&(sAMAccountName={0})(cn=sam r*))

2 replies

dvillarreal
Gold ⭐️
August 30, 2017

This may not work depending on your version because of this bug https://issues.apache.org/jira/browse/RANGER-1554 Should be fixed in HDP 2.6.1.

Translate
joao_caseiro
Silver ⭐️⭐️
March 11, 2020

Thx, D!

 

It’s works at Ranger v2.0 from new CDP Data Center, BareMetal version!

 

Regards,

Caseiro.

Translate