Ranger Ldap Integration
- October 5, 2026 at 8:52 AM
- 7 replies
- 26336 views
- Translate All
slapd-conf.tar.gzEnvironment:
Hortonworks Sandbox “HDP_2.3.2_virtualbox"
Ranger Version: 0.5.0.2.3
LDAP Version: openldap-2.4.40-7.el6_7.x86_64
LDAP setup url : LDAP setup tutorial [Note: The ldap setup here does not have ssl implemented. Pls find working “slapd.conf”attached]
Steps:
1.Configure openldap server on sandbox as mentioned in the Ldap setup url above.
2.Login to Ambari console using “admin” user.
3.Click on “Ranger” service -> “Configs”
4.Go to “LDAP Settings” and set the below properties –
ranger.ldap.user.searchfilter=(uid={0})
ranger.ldap.user.dnpattern=cn=Manager,dc=hortonworks,dc=com
ranger.ldap.url=ldap://127.0.0.1:389
ranger.ldap.referral=ignore
ranger.ldap.group.roleattribute=uid
ranger.ldap.bind.password=*****
ranger.ldap.bind.dn=cn=Manager,dc=hortonworks,dc=com
ranger.ldap.base.dn=dc=hortonworks,dc=com
Note: ldap.bind.password=<Admin password of openldap>
5.Go to “Advanced ranger-admin-site” and set below properties -
ranger.ldap.group.searchfilter=(member=uid={0},ou=Users,dc=hortonworks,dc=com)
ranger.ldap.group.searchbase=dc=hortonworks,dc=com
6. Go to “Advanced ranger-ugsync-site” and set below properties -
ranger.usersync.ldap.username.caseconversion= none
ranger.usersync.group.memberattributename=member
ranger.usersync.group.nameattribute=cn
ranger.usersync.group.objectclass= groupofnames
ranger.usersync.group.searchbase=dc=hortonworks,dc=com
ranger.usersync.group.searchenabled= false
ranger.usersync.group.searchscope=sub
ranger.usersync.group.usermapsyncenabled=false
ranger.usersync.ldap.user.searchscope=sub
ranger.usersync.ldap.user.searchbase=ou=Users,dc=hortonworks,dc=com
ranger.usersync.ldap.user.objectclass=person
ranger.usersync.ldap.user.nameattribute=uid
ranger.usersync.ldap.url=ldap://127.0.0.1:389
ranger.usersync.ldap.searchBase=dc=hortonworks,dc=com
ranger.usersync.ldap.referral=ignore
ranger.usersync.ldap.ldapbindpassword=*****
ranger.usersync.ldap.groupname.caseconversion=none
ranger.usersync.ldap.binddn=cn=Manager,dc=hortonworks,dc=com
ranger.usersync.ldap.bindalias= ranger.usersync.ldap.bindalias
ranger.usersync.source.impl.class= org.apache.ranger.ldapusersync.process.LdapUserGroupBuilder
ranger.usersync.sink.impl.class= org.apache.ranger.unixusersync.process.PolicyMgrUserGroupBuilder
7.Restart all affected components for “Ranger” service.
8.Browse “Ranger UI” on http://<ranger-host>:6080
9.Login to Ranger UI using “admin”
10.Make sure you have following entry in slap.conf
access to *
by anonymous read
by * none
11.Click on “Settings” -> “Users/Groups” and make sure you are able to see ldap users in “Users” section
12. Once you are able to view the users in Ranger UI, then logout from "admin" user.
13. Now try login in Ranger UI using ldap user.

