<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Zeppelin LDAP authentication filters HDP 2.3.0 in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zeppelin-LDAP-authentication-filters-HDP-2-3-0/m-p/110190#M38300</link>
    <description>&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;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&lt;/P&gt;&lt;PRE&gt;### 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
&lt;/PRE&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Should I use external .jar?&lt;/P&gt;&lt;P&gt;I use Zeppelin 0.6.0 with HDP stack 2.3.0.&lt;/P&gt;</description>
    <pubDate>Thu, 18 Aug 2016 22:06:25 GMT</pubDate>
    <dc:creator>frank93</dc:creator>
    <dc:date>2016-08-18T22:06:25Z</dc:date>
    <item>
      <title>Zeppelin LDAP authentication filters HDP 2.3.0</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zeppelin-LDAP-authentication-filters-HDP-2-3-0/m-p/110190#M38300</link>
      <description>&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;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&lt;/P&gt;&lt;PRE&gt;### 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
&lt;/PRE&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Should I use external .jar?&lt;/P&gt;&lt;P&gt;I use Zeppelin 0.6.0 with HDP stack 2.3.0.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2016 22:06:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zeppelin-LDAP-authentication-filters-HDP-2-3-0/m-p/110190#M38300</guid>
      <dc:creator>frank93</dc:creator>
      <dc:date>2016-08-18T22:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: Zeppelin LDAP authentication filters HDP 2.3.0</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zeppelin-LDAP-authentication-filters-HDP-2-3-0/m-p/110191#M38301</link>
      <description>&lt;P&gt;You would need to set ldapRealm.userDnTemplate to map users to roles automatically.&lt;/P&gt;&lt;P&gt;See code at &lt;A href="https://github.com/apache/zeppelin/blob/master/zeppelin-server/src/main/java/org/apache/zeppelin/server/LdapGroupRealm.java" target="_blank"&gt;https://github.com/apache/zeppelin/blob/master/zeppelin-server/src/main/java/org/apache/zeppelin/server/LdapGroupRealm.java&lt;/A&gt;&lt;/P&gt;&lt;P&gt;So LdapGroupRealm does filter for groups automatically&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;String searchFilter = "(&amp;amp;(objectClass=groupOfNames)(member=" + userDnTemplate + "))";&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Tue, 15 Nov 2016 14:14:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zeppelin-LDAP-authentication-filters-HDP-2-3-0/m-p/110191#M38301</guid>
      <dc:creator>dautkhanov1</dc:creator>
      <dc:date>2016-11-15T14:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: Zeppelin LDAP authentication filters HDP 2.3.0</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zeppelin-LDAP-authentication-filters-HDP-2-3-0/m-p/110192#M38302</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to restrict a specific group of ActiveDirectory users to access zeppelin.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;OL&gt;
&lt;LI&gt;[users]&lt;/LI&gt;&lt;LI&gt;# List of users with their password allowed to access Zeppelin.&lt;/LI&gt;&lt;LI&gt;# To use a different strategy (LDAP / Database / ...) check the shiro doc at &lt;A href="http://shiro.apache.org/configuration.html#Configuration-INISections"&gt;http://shiro.apache.org/configuration.html#Configuration-INISections&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;#admin = password1&lt;/LI&gt;&lt;LI&gt;#user1 = password2, role1, role2&lt;/LI&gt;&lt;LI&gt;#user2 = password3, role3&lt;/LI&gt;&lt;LI&gt;#user3 = password4, role2&lt;/LI&gt;&lt;LI&gt;# Sample LDAP configuration, for user Authentication, currently tested for single Realm&lt;/LI&gt;&lt;LI&gt;[main]&lt;/LI&gt;&lt;LI&gt;activeDirectoryRealm = org.apache.zeppelin.server.ActiveDirectoryGroupRealm&lt;/LI&gt;&lt;LI&gt;activeDirectoryRealm.systemUsername = cn=ldap-reader,ou=ServiceUsers,dc=lab,dc=hortonworks,dc=net&lt;/LI&gt;&lt;LI&gt;activeDirectoryRealm.systemPassword = badPassword&lt;/LI&gt;&lt;LI&gt;#activeDirectoryRealm.hadoopSecurityCredentialPath = jceks://user/zeppelin/conf/zeppelin.jceks&lt;/LI&gt;&lt;LI&gt;activeDirectoryRealm.searchBase = dc=lab,dc=hortonworks,dc=net&lt;/LI&gt;&lt;LI&gt;activeDirectoryRealm.url = ldap://ad.example.net:389&lt;/LI&gt;&lt;LI&gt;activeDirectoryRealm.groupRolesMap = "cn=ldap-admin,ou=ServiceUsers,dc=lab,dc=hortonworks,dc=net":"admin"&lt;/LI&gt;&lt;LI&gt;activeDirectoryRealm.authorizationCachingEnabled =false&lt;/LI&gt;&lt;LI&gt;sessionManager = org.apache.shiro.web.session.mgt.DefaultWebSessionManager&lt;/LI&gt;&lt;LI&gt;securityManager.sessionManager = $sessionManager&lt;/LI&gt;&lt;LI&gt;securityManager.realms = $activeDirectoryRealm&lt;/LI&gt;&lt;LI&gt;# 86,400,000 milliseconds = 24 hour&lt;/LI&gt;&lt;LI&gt;securityManager.sessionManager.globalSessionTimeout =86400000&lt;/LI&gt;&lt;LI&gt;shiro.loginUrl =/api/login&lt;/LI&gt;&lt;LI&gt;[urls]&lt;/LI&gt;&lt;LI&gt;# anon means the access is anonymous.&lt;/LI&gt;&lt;LI&gt;# authcBasic means Basic Auth Security&lt;/LI&gt;&lt;LI&gt;# To enfore security, comment the line below and uncomment the next one&lt;/LI&gt;&lt;LI&gt;/api/version = anon&lt;/LI&gt;&lt;LI&gt;#/** = anon&lt;/LI&gt;&lt;LI&gt;/api/interpreter/** = authc, roles[admin]&lt;/LI&gt;&lt;LI&gt;/api/configurations/** = authc, roles[admin]&lt;/LI&gt;&lt;LI&gt;/api/credential/** = authc, roles[admin]&lt;/LI&gt;&lt;LI&gt;/** = authc&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Please suggest,&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2017 19:35:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zeppelin-LDAP-authentication-filters-HDP-2-3-0/m-p/110192#M38302</guid>
      <dc:creator>haaris292</dc:creator>
      <dc:date>2017-04-26T19:35:03Z</dc:date>
    </item>
  </channel>
</rss>

