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]
Created 08-18-2016 03:06 PM
Hi all!
I can confirm that Zeppelin LDAP authentication works with HDP stack version 2.3.0. The only problem is that when I use LdapGroupRealm with ldapRealm.contextFactory.environment set to OU with groups only, I can access to Zeppelin as users from any other OU and these users are not a members of any group. When I use JndiLdapRealm I have access as users only from OU set in userDnTemplate, which is ok. Below my shiro.ini config for the first situation which I described
### A sample for configuring LDAP Directory Realm
ldapRealm = org.apache.zeppelin.server.LdapGroupRealm
#ldapRealm = org.apache.shiro.realm.ldap.JndiLdapRealm
## search base for ldap groups (only relevant for LdapGroupRealm):
ldapRealm.contextFactory.environment[ldap.searchBase] = cn={0},OU=Groups,OU=Zeppelin,DC=MYAD1,DC=COM
ldapRealm.contextFactory.url = ldap://192.168.1.100:389
ldapRealm.contextFactory.authenticationMechanism = SIMPLE
#ldapRealm.userDnTemplate = cn={0},OU=Users,OU=Zeppelin,DC=MYAD1,DC=COM
My question is: does default shiro realm (LdapGroupRealm or JndiLdapRealm) support filtering? I would like to filter users to authenticate. Perfectly would be if I could authenticate users by groups they belong to.
Should I use external .jar?
I use Zeppelin 0.6.0 with HDP stack 2.3.0.
Created 11-15-2016 06:14 AM
You would need to set ldapRealm.userDnTemplate to map users to roles automatically.
See code at https://github.com/apache/zeppelin/blob/master/zeppelin-server/src/main/java/org/apache/zeppelin/ser...
So LdapGroupRealm does filter for groups automatically
| String searchFilter = "(&(objectClass=groupOfNames)(member=" + userDnTemplate + "))"; |
Created 11-15-2016 06:14 AM
You would need to set ldapRealm.userDnTemplate to map users to roles automatically.
See code at https://github.com/apache/zeppelin/blob/master/zeppelin-server/src/main/java/org/apache/zeppelin/ser...
So LdapGroupRealm does filter for groups automatically
| String searchFilter = "(&(objectClass=groupOfNames)(member=" + userDnTemplate + "))"; |
Created 04-26-2017 12:35 PM
Hi,
I am trying to restrict a specific group of ActiveDirectory users to access zeppelin.
My shiro looks something like below, can you please suggest where i have to add the group name or make the changes so that the group of users are not able to login to zeppelin.
Please suggest,
Thanks