title: Hiveserver2 bind LDAP authentication
body: <p>I tried to deploy hiveserver2 service and found that it requires authentication mechanism to be deployed as well. so i attempted to use ldap for authentication, and config the hiveserver2 options as below.</p>
  
  <pre><code>&lt;property&gt;
  &lt;name&gt;hive.server2.thrift.port&lt;/name&gt;
  &lt;value&gt;10000&lt;/value&gt;
  &lt;/property&gt;
  &lt;property&gt;
  &lt;name&gt;hive.server2.thrift.bind.host&lt;/name&gt;
  &lt;value&gt;myhost&lt;/value&gt;
  &lt;/property&gt;
  &lt;property&gt;
  &lt;name&gt;hive.server2.authentication&lt;/name&gt;
  &lt;value&gt;LDAP&lt;/value&gt;
  &lt;/property&gt;
  &lt;property&gt;
  &lt;name&gt;hive.server2.authentication.ldap.url&lt;/name&gt;
  &lt;value&gt;ldap://localhost&lt;/value&gt;
  &lt;/property&gt;
  &lt;property&gt;
  &lt;name&gt;hive.server2.authentication.ldap.baseDN&lt;/name&gt;
  &lt;value&gt;dc=company,dc=com&lt;/value&gt;
  &lt;/property&gt;
  </code></pre>
  
  <p>i tested that the ldap server is installed successfully, but just can't connect to the server with ldap authentication via beeline tool, can anyone help me this out? i have tried this a lot, but still can't get this conquered. below is the beeline command used for connecting.</p>
  
  <pre><code>!connect jdbc:hive2://localhost:10000/default;user=xxxx;password=xxxx org.apache.hive.jdbc.HiveDriver
  </code></pre>
  
  <p>thanks!</p>