<?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 Impala LDAP authentication issues in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Impala-LDAP-authentication-issues/m-p/311390#M224628</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I've pretty much read through all the articles and questions about this, but i'm still having issues. the ldap user is definitely there and i can query through ldap port:389.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've set up the HUE ldap to authenticate against my openldap server, it works great. But i couldn't get the impala ldap setup to work. I'm using CDH 6.3.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I configured impala ldap settings through CM gui, services restarted okay after the config&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Advanced Configuratoin snippet(safety valve) :--ldap_passwords_in_clear_ok=true&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Enable LDAP Authentication: checked&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV class="display-name"&gt;LDAP URL: ldap://myldapFQDN:389&lt;/DIV&gt;
&lt;DIV class="display-name"&gt;&lt;SPAN&gt;LDAP BaseDN:&amp;nbsp;ou=users,dc=ldap,dc=xxx,dc=com&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="display-name"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="display-name"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="display-name"&gt;Error when using cloudera impala jdbc driver to connect, it worked with AuthMech=0 before I enabled LDAP&lt;/DIV&gt;
&lt;DIV class="display-name"&gt;
&lt;PRE&gt;&lt;SPAN class="GCHYANPCN0B"&gt;&lt;SPAN class="GCHYANPCC0B  ace_keyword"&gt;drv &amp;lt;- RJDBC::JDBC("com.cloudera.impala.jdbc4.Driver", "/opt/jars/ImpalaJDBC4.jar")&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="GCHYANPCN0B"&gt;&lt;SPAN class="GCHYANPCC0B ace_keyword"&gt;con &amp;lt;- dbConnect(drv, "jdbc:impala://impalaDaemonIP:21050;AuthMech=3;UID=myuser;PWD=mypassword") &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="GCHYANPCG0B  ace_constant"&gt;Error in .jcall(drv@jdrv, "Ljava/sql/Connection;", "connect", as.character(url)[1], : java.sql.SQLException: [Cloudera][ImpalaJDBCDriver](500176) Error connecting to HiveServer2, please verify connection settings. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;DIV class="display-name"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="display-name"&gt;&lt;SPAN&gt;Error when using the impala-shell&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="display-name"&gt;&lt;SPAN&gt;impala-shell -i impalaDaemonIP -d default -l -u myuser --auth_creds_ok_in_clear&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="display-name"&gt;&lt;SPAN&gt;prompted password and entered&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="display-name"&gt;
&lt;P&gt;Socket error None: timed out&lt;BR /&gt;***********************************************************************************&lt;BR /&gt;Welcome to the Impala shell.&lt;BR /&gt;(Impala Shell v3.2.0-cdh6.3.2 (1bb9836) built on Fri Nov 8 07:22:06 PST 2019)&lt;/P&gt;
&lt;P&gt;Press TAB twice to see a list of available commands.&lt;BR /&gt;***********************************************************************************&lt;/P&gt;
&lt;P&gt;LDAP authentication is enabled, but the connection to Impala is not secured by TLS.&lt;BR /&gt;ALL PASSWORDS WILL BE SENT IN THE CLEAR TO IMPALA.&lt;BR /&gt;[Not connected] &amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/var/log/impalad/impalad.INFO&amp;nbsp; &amp;nbsp;log info&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I0211 21:51:14.585675 63449 thrift-util.cc:123] TAcceptQueueServer: Caught TException: invalid sasl status&lt;BR /&gt;I0211 22:00:26.182997 63450 authentication.cc:254] Trying simple LDAP bind for: uid=myuser,ou=users,dc=ldap,dc=xxx,dc=com&lt;BR /&gt;W0211 22:02:33.461439 63450 authentication.cc:261] LDAP authentication failure for uid=myuser,ou=users,dc=ldap,dc=xxx,dc=com : Can't contact LDAP server&lt;BR /&gt;E0211 22:02:33.461570 63450 authentication.cc:164] SASL message (LDAP): Password verification failed&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Fri, 16 Sep 2022 14:40:37 GMT</pubDate>
    <dc:creator>jayGenesis</dc:creator>
    <dc:date>2022-09-16T14:40:37Z</dc:date>
    <item>
      <title>Impala LDAP authentication issues</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Impala-LDAP-authentication-issues/m-p/311390#M224628</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I've pretty much read through all the articles and questions about this, but i'm still having issues. the ldap user is definitely there and i can query through ldap port:389.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've set up the HUE ldap to authenticate against my openldap server, it works great. But i couldn't get the impala ldap setup to work. I'm using CDH 6.3.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I configured impala ldap settings through CM gui, services restarted okay after the config&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Advanced Configuratoin snippet(safety valve) :--ldap_passwords_in_clear_ok=true&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Enable LDAP Authentication: checked&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV class="display-name"&gt;LDAP URL: ldap://myldapFQDN:389&lt;/DIV&gt;
&lt;DIV class="display-name"&gt;&lt;SPAN&gt;LDAP BaseDN:&amp;nbsp;ou=users,dc=ldap,dc=xxx,dc=com&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="display-name"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="display-name"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="display-name"&gt;Error when using cloudera impala jdbc driver to connect, it worked with AuthMech=0 before I enabled LDAP&lt;/DIV&gt;
&lt;DIV class="display-name"&gt;
&lt;PRE&gt;&lt;SPAN class="GCHYANPCN0B"&gt;&lt;SPAN class="GCHYANPCC0B  ace_keyword"&gt;drv &amp;lt;- RJDBC::JDBC("com.cloudera.impala.jdbc4.Driver", "/opt/jars/ImpalaJDBC4.jar")&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="GCHYANPCN0B"&gt;&lt;SPAN class="GCHYANPCC0B ace_keyword"&gt;con &amp;lt;- dbConnect(drv, "jdbc:impala://impalaDaemonIP:21050;AuthMech=3;UID=myuser;PWD=mypassword") &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="GCHYANPCG0B  ace_constant"&gt;Error in .jcall(drv@jdrv, "Ljava/sql/Connection;", "connect", as.character(url)[1], : java.sql.SQLException: [Cloudera][ImpalaJDBCDriver](500176) Error connecting to HiveServer2, please verify connection settings. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;DIV class="display-name"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="display-name"&gt;&lt;SPAN&gt;Error when using the impala-shell&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="display-name"&gt;&lt;SPAN&gt;impala-shell -i impalaDaemonIP -d default -l -u myuser --auth_creds_ok_in_clear&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="display-name"&gt;&lt;SPAN&gt;prompted password and entered&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="display-name"&gt;
&lt;P&gt;Socket error None: timed out&lt;BR /&gt;***********************************************************************************&lt;BR /&gt;Welcome to the Impala shell.&lt;BR /&gt;(Impala Shell v3.2.0-cdh6.3.2 (1bb9836) built on Fri Nov 8 07:22:06 PST 2019)&lt;/P&gt;
&lt;P&gt;Press TAB twice to see a list of available commands.&lt;BR /&gt;***********************************************************************************&lt;/P&gt;
&lt;P&gt;LDAP authentication is enabled, but the connection to Impala is not secured by TLS.&lt;BR /&gt;ALL PASSWORDS WILL BE SENT IN THE CLEAR TO IMPALA.&lt;BR /&gt;[Not connected] &amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/var/log/impalad/impalad.INFO&amp;nbsp; &amp;nbsp;log info&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I0211 21:51:14.585675 63449 thrift-util.cc:123] TAcceptQueueServer: Caught TException: invalid sasl status&lt;BR /&gt;I0211 22:00:26.182997 63450 authentication.cc:254] Trying simple LDAP bind for: uid=myuser,ou=users,dc=ldap,dc=xxx,dc=com&lt;BR /&gt;W0211 22:02:33.461439 63450 authentication.cc:261] LDAP authentication failure for uid=myuser,ou=users,dc=ldap,dc=xxx,dc=com : Can't contact LDAP server&lt;BR /&gt;E0211 22:02:33.461570 63450 authentication.cc:164] SASL message (LDAP): Password verification failed&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 16 Sep 2022 14:40:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Impala-LDAP-authentication-issues/m-p/311390#M224628</guid>
      <dc:creator>jayGenesis</dc:creator>
      <dc:date>2022-09-16T14:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: Impala LDAP authentication issues</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Impala-LDAP-authentication-issues/m-p/311495#M224689</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/84641"&gt;@jayGenesis&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Impala supports simple bind authentication in CDH 6.3. The &lt;A href="https://docs.cloudera.com/runtime/7.2.2/impala-manage/topics/impala-ldap.html" target="_self"&gt;documentation&lt;/A&gt; for reference:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;LDAP BaseDN (--ldap_baseDN)
Replaces the username with a distinguished name (DN) of the form: uid=userid,ldap_baseDN. (This is equivalent to a Hive option).

LDAP Pattern (--ldap_bind_pattern)
This is the most general option, and replaces the username with the string ldap_bind_pattern where all instances of the string #UID are replaced with userid. For example, an ldap_bind_pattern of "user=#UID,OU=foo,CN=bar" with a username of henry will construct a bind name of "user=henry,OU=foo,CN=bar".&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This means that with the mentioned base dn configured there will be a bind request from Impala towards the LDAP server with&amp;nbsp;&lt;SPAN&gt;&lt;EM&gt;uid=&amp;lt;username&amp;gt;,ou=users,dc=ldap,dc=xxx,dc=com&lt;/EM&gt; user dn and its password, if this user does not exist the authentication will fail. Does the mentioned user exist in the LDAP directory?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 11:12:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Impala-LDAP-authentication-issues/m-p/311495#M224689</guid>
      <dc:creator>tmater</dc:creator>
      <dc:date>2021-02-15T11:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: Impala LDAP authentication issues</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Impala-LDAP-authentication-issues/m-p/311824#M224847</link>
      <description>&lt;P&gt;Hi tmater, sorry for the delay, yea the user does exist in the directory in that OU.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I actually do have an update on this, so originally the cloudera cluster(on AWS network) authenticates against my ldap server(on premise office network) via the WAN traffic. I did open port 389 and 636 both UDP and TCP on my ldap server and firewall. That didn't work. I just finished setting up a VPN tunnel between AWS and on premise network, I use the LAN ip for ldap settings on impala, and now it works. So i'm not sure if there's any additional ports needed to be open for the impala LDAP authentication or I did something wrong. But everything works now through the ldap and VPN tunnel.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2021 21:21:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Impala-LDAP-authentication-issues/m-p/311824#M224847</guid>
      <dc:creator>jayGenesis</dc:creator>
      <dc:date>2021-02-19T21:21:11Z</dc:date>
    </item>
  </channel>
</rss>

