<?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: Ranger errors HTTP/1.1 401 just before succes authentications in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Ranger-errors-HTTP-1-1-401-just-before-succes/m-p/188985#M151078</link>
    <description>&lt;P&gt;Hello &lt;A rel="user" href="https://community.cloudera.com/users/740/vrathor.html" nodeid="740"&gt;@Vipin Rathor&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Thanks for your clear explanations.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jul 2017 14:11:52 GMT</pubDate>
    <dc:creator>Micael</dc:creator>
    <dc:date>2017-07-20T14:11:52Z</dc:date>
    <item>
      <title>Ranger errors HTTP/1.1 401 just before succes authentications</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ranger-errors-HTTP-1-1-401-just-before-succes/m-p/188983#M151076</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In our clusters we have a strange behavior certainly due to a misconfiguration. In all ranger actions (like downloading policies, asking ranger KMS, get audits , etc....) we have a failed authentication before a success one. &lt;/P&gt;&lt;P&gt;Everything works as expected, but do not appear optimal.&lt;/P&gt;&lt;P&gt;Below is some examples extracted from access logs in ranger admin and kms&lt;/P&gt;&lt;PRE&gt;192.168.0.1 - - [19/Jul/2017:10:29:52 +0200] "GET /service/plugins/secure/policies/download/clusterName_kafka?lastKnownVersion=42&amp;amp;pluginId=kafka@host.domain-clusterName_kafka HTTP/1.1" 401 -
192.168.0.1 - - [19/Jul/2017:10:29:52 +0200] "GET /service/plugins/secure/policies/download/clusterName_kafka?lastKnownVersion=42&amp;amp;pluginId=kafka@host.domain-clusterName_kafka HTTP/1.1" 304 -


192.168.0.1 - - [17/Jul/2017:14:11:42 +0000] "GET /service/assets/accessAudit?page=0&amp;amp;pageSize=25&amp;amp;total_pages=66&amp;amp;totalCount=1626&amp;amp;startIndex=0&amp;amp;sortBy=eventTime&amp;amp;startDate=07%2F17%2F2017 HTTP/1.1" 401 1113
192.168.0.1 - - [17/Jul/2017:14:11:43 +0000] "GET /service/assets/accessAudit?page=0&amp;amp;pageSize=25&amp;amp;total_pages=66&amp;amp;totalCount=1626&amp;amp;startIndex=0&amp;amp;sortBy=eventTime&amp;amp;startDate=07%2F17%2F2017 HTTP/1.1" 200 11187




192.168.0.1 - - [17/Jul/2017:14:06:03 +0000] "GET /service/plugins/policy/52/versionList HTTP/1.1" 401 1113
192.168.0.1 - - [17/Jul/2017:14:06:03 +0000] "GET /service/plugins/policy/52/versionList HTTP/1.1" 200 23


192.168.0.1 - - [17/Jul/2017:14:06:03 +0000] "GET /service/plugins/policies/eventTime?eventTime=2017-07-17T14%3A05%3A47Z&amp;amp;policyId=52&amp;amp;_=1500297123319 HTTP/1.1" 401 1113
192.168.0.1 - - [17/Jul/2017:14:06:03 +0000] "GET /service/plugins/policies/eventTime?eventTime=2017-07-17T14%3A05%3A47Z&amp;amp;policyId=52&amp;amp;_=1500297123319 HTTP/1.1" 200 708


192.168.0.1 - - [19/Jul/2017:10:20:19 +0200] "OPTIONS /kms/v1/?op=GETDELEGATIONTOKEN&amp;amp;renewer=rm%2Fhost.domain%40CIB.NET HTTP/1.1" 401 997
192.168.0.1 - - [19/Jul/2017:10:20:19 +0200] "OPTIONS /kms/v1/?op=GETDELEGATIONTOKEN&amp;amp;renewer=rm%2Fhost.domain%40CIB.NET HTTP/1.1" 200 3484
192.168.0.1 - - [19/Jul/2017:10:20:19 +0200] "GET /kms/v1/?op=GETDELEGATIONTOKEN&amp;amp;renewer=rm%2Fhost.domain%40CIB.NET HTTP/1.1" 200 132
&lt;/PRE&gt;&lt;P&gt;Is anyone get some idea of what can be wrong? We have secured clusters and two ranger admin/kms hosts on each.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 15:55:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ranger-errors-HTTP-1-1-401-just-before-succes/m-p/188983#M151076</guid>
      <dc:creator>Micael</dc:creator>
      <dc:date>2017-07-19T15:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger errors HTTP/1.1 401 just before succes authentications</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ranger-errors-HTTP-1-1-401-just-before-succes/m-p/188984#M151077</link>
      <description>&lt;P&gt;Hello &lt;A rel="user" href="https://community.cloudera.com/users/2880/diasmicael.html" nodeid="2880"&gt;@Micaël Dias&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;HTTP authentication (to be specific SPNEGO authentication) works in two-pass handshake mechanism.&lt;/P&gt;&lt;P&gt;First, when client approaches HTTP server, the server would check the request header and respond by sending 401 'Authentication required' message. We see this response as first log in access log.&lt;/P&gt;&lt;PRE&gt;192.168.0.1 - - [17/Jul/2017:14:11:42 +0000] "GET /service/assets/accessAudit?page=0&amp;amp;pageSize=25&amp;amp;total_pages=66&amp;amp;totalCount=1626☆tIndex=0&amp;amp;sortBy=eventTime☆tDate=07%2F17%2F2017 HTTP/1.1" 401 1113&lt;/PRE&gt;&lt;P&gt;To this, the client would again send Negotiate header (indicating the Kerberos authentication token) to server. If everything works out, then server would respond with 200 OK message.&lt;/P&gt;&lt;PRE&gt;192.168.0.1 - - [17/Jul/2017:14:11:43 +0000] "GET /service/assets/accessAudit?page=0&amp;amp;pageSize=25&amp;amp;total_pages=66&amp;amp;totalCount=1626☆tIndex=0&amp;amp;sortBy=eventTime☆tDate=07%2F17%2F2017 HTTP/1.1" 200 11187&lt;/PRE&gt;&lt;P&gt;This is totally normal and expected when authentication is enabled for HTTP server.&lt;/P&gt;&lt;P&gt;Hope this helps !&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 03:45:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ranger-errors-HTTP-1-1-401-just-before-succes/m-p/188984#M151077</guid>
      <dc:creator>VR46</dc:creator>
      <dc:date>2017-07-20T03:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger errors HTTP/1.1 401 just before succes authentications</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ranger-errors-HTTP-1-1-401-just-before-succes/m-p/188985#M151078</link>
      <description>&lt;P&gt;Hello &lt;A rel="user" href="https://community.cloudera.com/users/740/vrathor.html" nodeid="740"&gt;@Vipin Rathor&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Thanks for your clear explanations.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 14:11:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ranger-errors-HTTP-1-1-401-just-before-succes/m-p/188985#M151078</guid>
      <dc:creator>Micael</dc:creator>
      <dc:date>2017-07-20T14:11:52Z</dc:date>
    </item>
  </channel>
</rss>

