Skip to main content
dvillarreal
Gold ⭐️
Dec 26, 2016 4:00 AM UTC

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

  • Oct 5, 2026 8:57 AM UTC
  • 2 replies
  • 3577 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 ⭐️
Aug 30, 2017 5:50 AM UTC

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 ⭐️⭐️
Mar 11, 2020 1:10 PM UTC

Thx, D!

 

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

 

Regards,

Caseiro.

Translate