<?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: Authentication Failure on Apache Ranger in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Authentication-Failure-on-Apache-Ranger/m-p/269811#M207106</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/69219"&gt;@ranger&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even if you have build ranger from source... before making the API call you should validate the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you really sure that the credentials that you are entering is correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Are you able to login to Ranger UI with that credential?&amp;nbsp; (this is the verify if your credentials are correct or not) ?&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Do you see &lt;EM&gt;&lt;STRONG&gt;"Bad Credentials"&lt;/STRONG&gt; &lt;/EM&gt;message inside the &lt;EM&gt;&lt;STRONG&gt;"xa_portal.log"&lt;/STRONG&gt;&lt;/EM&gt; ?&amp;nbsp; Can you share the log?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 05 Sep 2019 10:18:15 GMT</pubDate>
    <dc:creator>jsensharma</dc:creator>
    <dc:date>2019-09-05T10:18:15Z</dc:date>
    <item>
      <title>Authentication Failure on Apache Ranger</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Authentication-Failure-on-Apache-Ranger/m-p/269805#M207100</link>
      <description>&lt;P&gt;I have configured Ranger with Ranger-admin and Hadoop , HDFS&amp;nbsp; plugins.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can access the basic url,&lt;BR /&gt;curl -u rangeradmin:rangeradmin -i -X GET &lt;A href="http://127.0.0.1:6080" target="_blank"&gt;http://127.0.0.1:6080&lt;/A&gt;&lt;BR /&gt;HTTP/1.1 302 Found&lt;BR /&gt;Set-Cookie: RANGERADMINSESSIONID=6A1E7311C911AE876D02359679222E24; Path=/; HttpOnly&lt;BR /&gt;X-Frame-Options: DENY&lt;BR /&gt;Cache-Control: no-cache, no-store, max-age=0, must-revalidate&lt;BR /&gt;Pragma: no-cache&lt;BR /&gt;Expires: 0&lt;BR /&gt;X-XSS-Protection: 1; mode=block&lt;BR /&gt;X-Content-Type-Options: nosniff&lt;BR /&gt;Content-Security-Policy: default-src 'none'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; connect-src 'self'; img-src 'self'; style-src 'self' 'unsafe-inline';font-src 'self'&lt;BR /&gt;Location: &lt;A href="http://127.0.0.1:6080/login.jsp" target="_blank"&gt;http://127.0.0.1:6080/login.jsp&lt;/A&gt;&lt;BR /&gt;Content-Length: 0&lt;BR /&gt;Date: Thu, 05 Sep 2019 09:02:16 GMT&lt;BR /&gt;Server: Apache Ranger&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but on accessing other urls it fails:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;curl -u rangeradmin:rangeradmin -i -X GET &lt;A href="http://127.0.0.1:6080/service/plugins/policies/service/1" target="_blank"&gt;http://127.0.0.1:6080/service/plugins/policies/service/1&lt;/A&gt;&lt;BR /&gt;HTTP/1.1 401 Unauthorized&lt;BR /&gt;Set-Cookie: RANGERADMINSESSIONID=96A517FCD3CDC23354BFDFE3D22E6FE4; Path=/; HttpOnly&lt;BR /&gt;X-Frame-Options: DENY&lt;BR /&gt;Cache-Control: no-cache, no-store, max-age=0, must-revalidate&lt;BR /&gt;Pragma: no-cache&lt;BR /&gt;Expires: 0&lt;BR /&gt;X-XSS-Protection: 1; mode=block&lt;BR /&gt;X-Content-Type-Options: nosniff&lt;BR /&gt;Content-Security-Policy: default-src 'none'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; connect-src 'self'; img-src 'self'; style-src 'self' 'unsafe-inline';font-src 'self'&lt;BR /&gt;Content-Length: 52&lt;BR /&gt;Date: Thu, 05 Sep 2019 08:37:47 GMT&lt;BR /&gt;Server: Apache Ranger&lt;/P&gt;&lt;P&gt;{"statusCode":401,"msgDesc":"Authentication Failed"}&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2019 09:02:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Authentication-Failure-on-Apache-Ranger/m-p/269805#M207100</guid>
      <dc:creator>ranger</dc:creator>
      <dc:date>2019-09-05T09:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication Failure on Apache Ranger</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Authentication-Failure-on-Apache-Ranger/m-p/269807#M207102</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/69219"&gt;@ranger&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As we see "Authentication Failed" hence most possible cause may be the incorrect ranger admin credentials supplied to the curl command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Are you sure that you are able to Login to Ranger UI using Web Browser with the same credentials &lt;STRONG&gt;Username&lt;/STRONG&gt;: "rangeradmin" &lt;STRONG&gt;Password&lt;/STRONG&gt;: "rangeradmin"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;http://$RANGER_HOSTNAME:6080&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If not then please check what is the Username&amp;amp; Password you have entered here&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Ambari UI --&amp;gt; Ranger --&amp;gt; Configs --&amp;gt; Advanced --&amp;gt; "Advanced ranger-env" --&amp;gt; "Ranger Admin username" AND "Ranger Admin user's password"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;2. Please tail the "xa_portal.log" log and see if you are getting any of the following message when you are attempting to login to Ranger UI using the same credentials? Or while making the API call?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# tail -f /var/log/ranger/admin/xa_portal.log
# grep 'Login Unsuccessful' /var/log/ranger/admin/xa_portal.log
# grep 'Authentication with' /var/log/ranger/admin/xa_portal.log
# grep 'Bad Credentials' /var/log/ranger/admin/xa_portal.log&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2019 09:35:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Authentication-Failure-on-Apache-Ranger/m-p/269807#M207102</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2019-09-05T09:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication Failure on Apache Ranger</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Authentication-Failure-on-Apache-Ranger/m-p/269810#M207105</link>
      <description>&lt;P&gt;I have not used Ambari&amp;nbsp; UI, instead built ranger from sources and installed the hadoop , ranger-admin and HDFS plugins , Is there any way to check Ranger's REST apis with Ambari&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my configuration inside&amp;nbsp;install.properties of&amp;nbsp;ranger-2.1.0-SNAPSHOT-admin , after which I installed ranger-admin plugin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;policymgr_external_url=http://localhost:6080&lt;BR /&gt;policymgr_http_enabled=true&lt;BR /&gt;policymgr_https_keystore_file=&lt;BR /&gt;policymgr_https_keystore_keyalias=rangeradmin&lt;BR /&gt;policymgr_https_keystore_password=rangeradmin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With this user name and password, I get the following response:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;curl -u rangeradmin:rangeradmin -i -X GET &lt;A href="http://127.0.0.1:6080/login.jsp" target="_blank"&gt;http://127.0.0.1:6080/login.jsp&lt;/A&gt;&lt;BR /&gt;HTTP/1.1 200 OK&lt;BR /&gt;Set-Cookie: RANGERADMINSESSIONID=A748FB6091DA17AEFACC6E3552723593; Path=/; HttpOnly&lt;BR /&gt;X-Frame-Options: DENY&lt;BR /&gt;Content-Type: text/html;charset=ISO-8859-1&lt;BR /&gt;Content-Length: 3629&lt;BR /&gt;Date: Thu, 05 Sep 2019 09:53:52 GMT&lt;BR /&gt;Server: Apache Ranger&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2019 09:55:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Authentication-Failure-on-Apache-Ranger/m-p/269810#M207105</guid>
      <dc:creator>ranger</dc:creator>
      <dc:date>2019-09-05T09:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication Failure on Apache Ranger</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Authentication-Failure-on-Apache-Ranger/m-p/269811#M207106</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/69219"&gt;@ranger&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even if you have build ranger from source... before making the API call you should validate the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you really sure that the credentials that you are entering is correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Are you able to login to Ranger UI with that credential?&amp;nbsp; (this is the verify if your credentials are correct or not) ?&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Do you see &lt;EM&gt;&lt;STRONG&gt;"Bad Credentials"&lt;/STRONG&gt; &lt;/EM&gt;message inside the &lt;EM&gt;&lt;STRONG&gt;"xa_portal.log"&lt;/STRONG&gt;&lt;/EM&gt; ?&amp;nbsp; Can you share the log?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2019 10:18:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Authentication-Failure-on-Apache-Ranger/m-p/269811#M207106</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2019-09-05T10:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication Failure on Apache Ranger</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Authentication-Failure-on-Apache-Ranger/m-p/269832#M207120</link>
      <description>&lt;P&gt;Thanks for your guidance, Now when I try to login with rangeradmin:rangeradmin credentials ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="errorMsg"&gt;The username or password you entered is incorrect.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2019 16:29:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Authentication-Failure-on-Apache-Ranger/m-p/269832#M207120</guid>
      <dc:creator>ranger</dc:creator>
      <dc:date>2019-09-05T16:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication Failure on Apache Ranger</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Authentication-Failure-on-Apache-Ranger/m-p/269849#M207135</link>
      <description>&lt;P&gt;Though I have put rangeradmin as username and password inside ranger-admin/install,properties, it is not taking that,, Instead its taking admin:admin as credentials what I have setuo in Ambari server..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This I dont understand because ambari server I installed separately and never used Ambari to install Ranger, instead compiled Ranger from scratch.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2019 16:48:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Authentication-Failure-on-Apache-Ranger/m-p/269849#M207135</guid>
      <dc:creator>ranger</dc:creator>
      <dc:date>2019-09-05T16:48:40Z</dc:date>
    </item>
  </channel>
</rss>

