<?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 Re: Zeppelin user role mapping using Active Directory in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zeppelin-user-role-mapping-using-Active-Directory/m-p/238685#M85539</link>
    <description>&lt;P&gt;It worked using LDAP realm.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Mon, 14 Jan 2019 23:18:07 GMT</pubDate>
    <dc:creator>jorge_florencio</dc:creator>
    <dc:date>2019-01-14T23:18:07Z</dc:date>
    <item>
      <title>Zeppelin user role mapping using Active Directory</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zeppelin-user-role-mapping-using-Active-Directory/m-p/238681#M85535</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Active Directory users can successfully login to Zeppelin but roles are not mapped to the users.&lt;/P&gt;&lt;P&gt;Here is the shiro.ini configuration:&lt;/P&gt;&lt;PRE&gt;[main]
adRealm = org.apache.shiro.realm.activedirectory.ActiveDirectoryRealm
adRealm.url = ldap://domain.com:389
adRealm.searchBase = DC=domain,DC=com
adRealm.groupRolesMap = "CN=admins,OU=HWX,DC=domain,DC=com":"admin","CN=users,OU=HWX,DC=domain,DC=com":"users"
adRealm.systemUsername = hwx@DOMAIN.COM
adRealm.systemPassword = XXXXXX
adRealm.principalSuffix = @DOMAIN.COM
adRealm.authorizationCachingEnabled = false
sessionManager = org.apache.shiro.web.session.mgt.DefaultWebSessionManager
securityManager.sessionManager = $sessionManager
securityManager.sessionManager.globalSessionTimeout = 86400000
cacheManager = org.apache.shiro.cache.MemoryConstrainedCacheManager
securityManager.cacheManager = $cacheManager
securityManager.realms = $adRealm
shiro.loginUrl = /api/login


[roles]
admin = *
users = *


[urls]
/** = authc
/api/version = anon
/api/interpreter/** = authc, roles[admin]
/api/credential/** = authc, roles[admin]
/api/configurations/** = authc, roles[admin]

&lt;/PRE&gt;&lt;P&gt;Is there something missing in the configuration?&lt;/P&gt;&lt;P&gt;The following message is displayed on the log:&lt;/P&gt;&lt;PRE&gt;WARN [2018-12-13 12:33:30,771] ({qtp64830413-19} LoginRestApi.java[postLogin]:119) - {"status":"OK","message":"","body":{"principal":"user1","ticket":"64c38479-4241-417b-99c4-1840fd41e5a4","roles":"[]"}}&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;Many thanks in advance,&lt;/P&gt;&lt;P&gt;Jorge.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 03:33:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zeppelin-user-role-mapping-using-Active-Directory/m-p/238681#M85535</guid>
      <dc:creator>jorge_florencio</dc:creator>
      <dc:date>2018-12-14T03:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: Zeppelin user role mapping using Active Directory</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zeppelin-user-role-mapping-using-Active-Directory/m-p/238682#M85536</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/46217/jorgeflorencio.html" nodeid="46217"&gt;@Jorge Florencio&lt;/A&gt; Group search base is missing, try with below template&lt;/P&gt;&lt;P&gt;========&lt;/P&gt;&lt;P&gt;ldapRealm=org.apache.zeppelin.realm.LdapRealm&lt;/P&gt;&lt;P&gt;ldapRealm.contextFactory.systemUsername
=cn=manager,dc=charan,dc=com&lt;/P&gt;&lt;P&gt;ldapRealm.contextFactory.systemPassword
=xxxx&lt;/P&gt;&lt;P&gt;ldapRealm.contextFactory.authenticationMechanism=simple&lt;/P&gt;&lt;P&gt;ldapRealm.contextFactory.url=ldap://ldap_url:389&lt;/P&gt;&lt;P&gt;ldapRealm.authorizationEnabled=true&lt;/P&gt;&lt;P&gt;#ldapRealm.pagingSize
= 20000 &lt;/P&gt;&lt;P&gt;ldapRealm.searchBase=dc=sai,dc=com&lt;/P&gt;&lt;P&gt;ldapRealm.userSearchBase=ou=People,dc=charan,dc=com&lt;/P&gt;&lt;P&gt;ldapRealm.groupSearchBase=cn=admin,ou=Group,dc=charan,dc=com&lt;/P&gt;&lt;P&gt;ldapRealm.userObjectClass=*&lt;/P&gt;&lt;P&gt;ldapRealm.groupObjectClass=groupOfNames&lt;/P&gt;&lt;P&gt;ldapRealm.userSearchAttributeName
= uid &lt;/P&gt;&lt;P&gt;ldapRealm.userSearchScope
= subtree &lt;/P&gt;&lt;P&gt;ldapRealm.groupSearchScope
= subtree &lt;/P&gt;&lt;P&gt;ldapRealm.userSearchFilter=
(&amp;amp;(objectclass=*)(uid={0})) &lt;/P&gt;&lt;P&gt;ldapRealm.memberAttribute
= member &lt;/P&gt;&lt;P&gt;ldapRealm.memberAttributeValueTemplate={0}&lt;/P&gt;&lt;P&gt;ldapRealm.rolesByGroup
= "admin":admin_role&lt;/P&gt;&lt;P&gt;============&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 17:21:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zeppelin-user-role-mapping-using-Active-Directory/m-p/238682#M85536</guid>
      <dc:creator>Scharan</dc:creator>
      <dc:date>2018-12-14T17:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Zeppelin user role mapping using Active Directory</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zeppelin-user-role-mapping-using-Active-Directory/m-p/238683#M85537</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/15463/scharan.html" nodeid="15463"&gt;@scharan&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;you are using ldapRealm. There's no way to solve the issue using ActiveDirectoryRealm?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Jorge.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 23:15:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zeppelin-user-role-mapping-using-Active-Directory/m-p/238683#M85537</guid>
      <dc:creator>jorge_florencio</dc:creator>
      <dc:date>2018-12-14T23:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: Zeppelin user role mapping using Active Directory</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zeppelin-user-role-mapping-using-Active-Directory/m-p/238684#M85538</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/46217/jorgeflorencio.html" nodeid="46217"&gt;@Jorge Florencio&lt;/A&gt; you can use ldap in place on adrealm, just need to change the Active Directory details to suit your AD environment.&lt;/P&gt;&lt;P&gt;Refer to this article: &lt;A href="https://community.hortonworks.com/articles/105169/hdp-26-configuring-zeppelin-for-active-directory-u.html" target="_blank"&gt;https://community.hortonworks.com/articles/105169/hdp-26-configuring-zeppelin-for-active-directory-u.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Dec 2018 10:43:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zeppelin-user-role-mapping-using-Active-Directory/m-p/238684#M85538</guid>
      <dc:creator>Scharan</dc:creator>
      <dc:date>2018-12-15T10:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: Zeppelin user role mapping using Active Directory</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zeppelin-user-role-mapping-using-Active-Directory/m-p/238685#M85539</link>
      <description>&lt;P&gt;It worked using LDAP realm.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2019 23:18:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zeppelin-user-role-mapping-using-Active-Directory/m-p/238685#M85539</guid>
      <dc:creator>jorge_florencio</dc:creator>
      <dc:date>2019-01-14T23:18:07Z</dc:date>
    </item>
  </channel>
</rss>

