<?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 Knox LDAP Group Look up not working for UI's  (works for KNOX API service) in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Knox-LDAP-Group-Look-up-not-working-for-UI-s-works-for-KNOX/m-p/168739#M41733</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have setup knox to authenticate with our LDAP server and everything is working except when accessing the Hadoop UI's. Users that are not part of the group i've defined in AclsAuthz are still able to login. This works as expected when trying to access KNOX API. &lt;/P&gt;&lt;P&gt;
see below: &lt;/P&gt;&lt;P&gt;Knox topology - i expect only users in "knox" group to be able to have access.&lt;/P&gt;&lt;PRE&gt;    &amp;lt;provider&amp;gt;
        &amp;lt;role&amp;gt;authorization&amp;lt;/role&amp;gt;
        &amp;lt;name&amp;gt;AclsAuthz&amp;lt;/name&amp;gt;
        &amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;
        &amp;lt;param name="knox.acl" value="*;knox;*"/&amp;gt;
    &amp;lt;/provider&amp;gt;&lt;/PRE&gt;&lt;P&gt;/bin/knoxcli.sh user-auth-test --cluster default --u mliem --p '*******' --g&lt;/P&gt;&lt;P&gt;LDAP authentication successful!&lt;/P&gt;&lt;P&gt;mliem is a member of: admin&lt;/P&gt;&lt;P&gt;mliem is a member of: knox&lt;/P&gt;&lt;P&gt;mliem is a member of: developers&lt;/P&gt;&lt;P&gt;/bin/knoxcli.sh user-auth-test --cluster default --u jdoe --p '*******'' --g&lt;/P&gt;&lt;P&gt;LDAP authentication successful!&lt;/P&gt;&lt;P&gt;jdoe is a member of: developers&lt;/P&gt;&lt;P&gt;--------------------------------------------------------&lt;/P&gt;&lt;P&gt;curl -u mliem:'*****' -ik 'https://&amp;lt;knox_ip&amp;gt;:8443/gateway/default/api/v1/version'&lt;/P&gt;&lt;P&gt;HTTP/1.1 200 OK&lt;/P&gt;&lt;P&gt;curl -u jdoe:'*****' -ik 'https://&amp;lt;knox_ip&amp;gt;:8443/gateway/default/api/v1/version'&lt;/P&gt;&lt;P&gt;HTTP/1.1 403 Forbidden&lt;/P&gt;&lt;P&gt;Now when I access the UI's as defined in my topology: &lt;/P&gt;&lt;PRE&gt;    &amp;lt;service&amp;gt;
        &amp;lt;role&amp;gt;YARNUI&amp;lt;/role&amp;gt;
        &amp;lt;url&amp;gt;http://{{rm_host}}:{{rm_port}}&amp;lt;/url&amp;gt;
    &amp;lt;/service&amp;gt;&lt;/PRE&gt;&lt;P&gt;Both mliem (expected) and jdoe can access. &lt;/P&gt;&lt;P&gt;Is there anything additional I need to add to my topology in order to leverage the groups i've defined in my LDAP server?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;</description>
    <pubDate>Sun, 25 Sep 2016 08:00:07 GMT</pubDate>
    <dc:creator>mliem</dc:creator>
    <dc:date>2016-09-25T08:00:07Z</dc:date>
    <item>
      <title>Knox LDAP Group Look up not working for UI's  (works for KNOX API service)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Knox-LDAP-Group-Look-up-not-working-for-UI-s-works-for-KNOX/m-p/168739#M41733</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have setup knox to authenticate with our LDAP server and everything is working except when accessing the Hadoop UI's. Users that are not part of the group i've defined in AclsAuthz are still able to login. This works as expected when trying to access KNOX API. &lt;/P&gt;&lt;P&gt;
see below: &lt;/P&gt;&lt;P&gt;Knox topology - i expect only users in "knox" group to be able to have access.&lt;/P&gt;&lt;PRE&gt;    &amp;lt;provider&amp;gt;
        &amp;lt;role&amp;gt;authorization&amp;lt;/role&amp;gt;
        &amp;lt;name&amp;gt;AclsAuthz&amp;lt;/name&amp;gt;
        &amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;
        &amp;lt;param name="knox.acl" value="*;knox;*"/&amp;gt;
    &amp;lt;/provider&amp;gt;&lt;/PRE&gt;&lt;P&gt;/bin/knoxcli.sh user-auth-test --cluster default --u mliem --p '*******' --g&lt;/P&gt;&lt;P&gt;LDAP authentication successful!&lt;/P&gt;&lt;P&gt;mliem is a member of: admin&lt;/P&gt;&lt;P&gt;mliem is a member of: knox&lt;/P&gt;&lt;P&gt;mliem is a member of: developers&lt;/P&gt;&lt;P&gt;/bin/knoxcli.sh user-auth-test --cluster default --u jdoe --p '*******'' --g&lt;/P&gt;&lt;P&gt;LDAP authentication successful!&lt;/P&gt;&lt;P&gt;jdoe is a member of: developers&lt;/P&gt;&lt;P&gt;--------------------------------------------------------&lt;/P&gt;&lt;P&gt;curl -u mliem:'*****' -ik 'https://&amp;lt;knox_ip&amp;gt;:8443/gateway/default/api/v1/version'&lt;/P&gt;&lt;P&gt;HTTP/1.1 200 OK&lt;/P&gt;&lt;P&gt;curl -u jdoe:'*****' -ik 'https://&amp;lt;knox_ip&amp;gt;:8443/gateway/default/api/v1/version'&lt;/P&gt;&lt;P&gt;HTTP/1.1 403 Forbidden&lt;/P&gt;&lt;P&gt;Now when I access the UI's as defined in my topology: &lt;/P&gt;&lt;PRE&gt;    &amp;lt;service&amp;gt;
        &amp;lt;role&amp;gt;YARNUI&amp;lt;/role&amp;gt;
        &amp;lt;url&amp;gt;http://{{rm_host}}:{{rm_port}}&amp;lt;/url&amp;gt;
    &amp;lt;/service&amp;gt;&lt;/PRE&gt;&lt;P&gt;Both mliem (expected) and jdoe can access. &lt;/P&gt;&lt;P&gt;Is there anything additional I need to add to my topology in order to leverage the groups i've defined in my LDAP server?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;</description>
      <pubDate>Sun, 25 Sep 2016 08:00:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Knox-LDAP-Group-Look-up-not-working-for-UI-s-works-for-KNOX/m-p/168739#M41733</guid>
      <dc:creator>mliem</dc:creator>
      <dc:date>2016-09-25T08:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: Knox LDAP Group Look up not working for UI's  (works for KNOX API service)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Knox-LDAP-Group-Look-up-not-working-for-UI-s-works-for-KNOX/m-p/168740#M41734</link>
      <description>&lt;P&gt;Hello &lt;A rel="user" href="https://community.cloudera.com/users/11088/mliem.html" nodeid="11088"&gt;@mliem&lt;/A&gt;  &lt;/P&gt;&lt;P&gt;You almost got it right. The missing piece is the ACL param for YARNUI service. So in your Knox topology, the authorization provider should look like this:&lt;/P&gt;&lt;PRE&gt;    &amp;lt;provider&amp;gt;
      &amp;lt;role&amp;gt;authorization&amp;lt;/role&amp;gt;
      &amp;lt;name&amp;gt;AclsAuthz&amp;lt;/name&amp;gt;
      &amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;
      &amp;lt;param name="knox.acl" value="*;knox;*"/&amp;gt;
      &amp;lt;param name="yarnui.acl" value="*;knox;*"/&amp;gt;
    &amp;lt;/provider&amp;gt;&lt;/PRE&gt;&lt;P&gt;Hope this helps. Do let us know the results.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Sep 2016 17:08:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Knox-LDAP-Group-Look-up-not-working-for-UI-s-works-for-KNOX/m-p/168740#M41734</guid>
      <dc:creator>VR46</dc:creator>
      <dc:date>2016-09-25T17:08:41Z</dc:date>
    </item>
  </channel>
</rss>

