<?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 Issue in Apache Knox ldap in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Authentication-Issue-in-Apache-Knox-ldap/m-p/184881#M58826</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/505/dsharma.html" nodeid="505"&gt;@Deepak Sharma&lt;/A&gt; &lt;/P&gt;&lt;P&gt;I am running below mentioned command&lt;/P&gt;&lt;P&gt;curl -iku steve:steve-password -X GET "https://{lknox_gateway}:8443/gateway/default/webhdfs/v1/tmp?op=LISTSTATUS"&lt;/P&gt;&lt;P&gt;While running below it is also getting failed with error below&lt;/P&gt;&lt;P&gt;. knoxcli.sh --d user-auth-test --cluster default --u steve --p steve-password&lt;/P&gt;&lt;P&gt;Caused by: javax.naming.AuthenticationException: [LDAP: error code 49 - INVALID_CREDENTIALS: Bind failed: ERR_229 Cannot authenticate user uid=steve,ou=people,dc=hadoop,dc=apache,dc=org]&lt;/P&gt;&lt;P&gt;How to do ldap seach? I am using internal ldap provided with knox with default topology file(default.xml)&lt;/P&gt;&lt;P&gt;I have copied the same template for other users(i.e. tom,guest) present in users.ldif file and modified it to match steve. I am not understanding why is it not working although the steps looks right? Do i need to modify any other file as well in addition to users.ldif?&lt;/P&gt;</description>
    <pubDate>Mon, 03 Apr 2017 17:58:06 GMT</pubDate>
    <dc:creator>munnyrahul</dc:creator>
    <dc:date>2017-04-03T17:58:06Z</dc:date>
    <item>
      <title>Authentication Issue in Apache Knox ldap</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Authentication-Issue-in-Apache-Knox-ldap/m-p/184878#M58823</link>
      <description>&lt;P&gt;I have installed knox as a service using Ambari(on Edge Node) on my 6 Node HDP 2.5 cluster(1 Edge Node, 1 Namenode, 1 Secondary Namenode and 3 Slave Nodes). Knox gateway and ldap Server is up and running on Edge Node. &lt;/P&gt;&lt;P&gt;I am also able to authenticate to webhdfs using existing users like guest, tom, sam in users.ldif file. But when i add a new user i.e. scott into users.ldif file it is showing Unauthorized error in HDFS? I have copied the template of existing user "tom" and added new user as mentioned below. Any idea why i am facing such issue?&lt;/P&gt;&lt;P&gt;dn: uid=steve,ou=people,dc=hadoop,dc=apache,dc=org &lt;/P&gt;&lt;P&gt;objectclass:top&lt;/P&gt;&lt;P&gt;
objectclass:person &lt;/P&gt;&lt;P&gt;objectclass:organizationalPerson &lt;/P&gt;&lt;P&gt;objectclass:inetOrgPerson&lt;/P&gt;&lt;P&gt;
cn: scott &lt;/P&gt;&lt;P&gt;sn: scott &lt;/P&gt;&lt;P&gt;uid: scott &lt;/P&gt;&lt;P&gt;userPassword:steve-password&lt;/P&gt;&lt;P&gt;I am facing below mentioned error for new users &lt;/P&gt;&lt;P&gt;[LDAP: error code 49 - INVALID_CREDENTIALS: Bind failed: ERR_229 Cannot authenticate user uid=steve,ou=people,dc=hadoop,dc=apache,dc=org]&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2017 16:03:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Authentication-Issue-in-Apache-Knox-ldap/m-p/184878#M58823</guid>
      <dc:creator>munnyrahul</dc:creator>
      <dc:date>2017-04-03T16:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication Issue in Apache Knox ldap</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Authentication-Issue-in-Apache-Knox-ldap/m-p/184879#M58824</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/505/dsharma.html" nodeid="505"&gt;@Deepak Sharma&lt;/A&gt; &lt;A rel="user" href="https://community.cloudera.com/users/10322/rpathak.html" nodeid="10322"&gt;@Rahul Pathak&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Could you help?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2017 17:08:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Authentication-Issue-in-Apache-Knox-ldap/m-p/184879#M58824</guid>
      <dc:creator>munnyrahul</dc:creator>
      <dc:date>2017-04-03T17:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication Issue in Apache Knox ldap</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Authentication-Issue-in-Apache-Knox-ldap/m-p/184880#M58825</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/15105/rahgulati.html"&gt;rahul gulati&lt;/A&gt; , are you able to do ldap search for that user? , &lt;/P&gt;&lt;P&gt;this is the issue with user addition , it seems user is not added to the ldap , just run ldap search for this user and confirm if it is added properly&lt;/P&gt;&lt;P&gt;and what is the command you are running from knox ? , you need to provide username and password while running it from knox, curl -u steve:steve-password&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2017 17:52:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Authentication-Issue-in-Apache-Knox-ldap/m-p/184880#M58825</guid>
      <dc:creator>dsharma</dc:creator>
      <dc:date>2017-04-03T17:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication Issue in Apache Knox ldap</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Authentication-Issue-in-Apache-Knox-ldap/m-p/184881#M58826</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/505/dsharma.html" nodeid="505"&gt;@Deepak Sharma&lt;/A&gt; &lt;/P&gt;&lt;P&gt;I am running below mentioned command&lt;/P&gt;&lt;P&gt;curl -iku steve:steve-password -X GET "https://{lknox_gateway}:8443/gateway/default/webhdfs/v1/tmp?op=LISTSTATUS"&lt;/P&gt;&lt;P&gt;While running below it is also getting failed with error below&lt;/P&gt;&lt;P&gt;. knoxcli.sh --d user-auth-test --cluster default --u steve --p steve-password&lt;/P&gt;&lt;P&gt;Caused by: javax.naming.AuthenticationException: [LDAP: error code 49 - INVALID_CREDENTIALS: Bind failed: ERR_229 Cannot authenticate user uid=steve,ou=people,dc=hadoop,dc=apache,dc=org]&lt;/P&gt;&lt;P&gt;How to do ldap seach? I am using internal ldap provided with knox with default topology file(default.xml)&lt;/P&gt;&lt;P&gt;I have copied the same template for other users(i.e. tom,guest) present in users.ldif file and modified it to match steve. I am not understanding why is it not working although the steps looks right? Do i need to modify any other file as well in addition to users.ldif?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2017 17:58:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Authentication-Issue-in-Apache-Knox-ldap/m-p/184881#M58826</guid>
      <dc:creator>munnyrahul</dc:creator>
      <dc:date>2017-04-03T17:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication Issue in Apache Knox ldap</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Authentication-Issue-in-Apache-Knox-ldap/m-p/184882#M58827</link>
      <description>&lt;P&gt;one more thing did you restart the ldap after adding the user ? , because i am able to use the user the way you added it , just make sure you restart the ldap server after adding new user in user.ldif&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2017 18:13:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Authentication-Issue-in-Apache-Knox-ldap/m-p/184882#M58827</guid>
      <dc:creator>dsharma</dc:creator>
      <dc:date>2017-04-03T18:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication Issue in Apache Knox ldap</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Authentication-Issue-in-Apache-Knox-ldap/m-p/184883#M58828</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/505/dsharma.html" nodeid="505"&gt;@Deepak Sharma&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Yeah i missed the main thing. Was not restarting ldap service. Thanks for the answer.&lt;/P&gt;&lt;P&gt;Anyways do u have any reference links to help me connect to hive through knox?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2017 18:40:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Authentication-Issue-in-Apache-Knox-ldap/m-p/184883#M58828</guid>
      <dc:creator>munnyrahul</dc:creator>
      <dc:date>2017-04-03T18:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication Issue in Apache Knox ldap</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Authentication-Issue-in-Apache-Knox-ldap/m-p/184884#M58829</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/15105/rahgulati.html" nodeid="15105"&gt;@rahul gulati&lt;/A&gt; this is how I connect to hive via knox through beeline:&lt;/P&gt;&lt;P&gt;beeline --silent=true -u "jdbc:hive2://&amp;lt;knox_host&amp;gt;:8443/;ssl=true;sslTrustStore=/usr/hdp/current/knox-server/data/security/keystores/gateway.jks;trustStorePassword=knoxsecret;transportMode=http;httpPath=gateway/default/hive;hive.server2.use.SSL=true" -d org.apache.hive.jdbc.HiveDriver -n sam -p sam-password&lt;/P&gt;&lt;P&gt;and there are few references too:&lt;/P&gt;&lt;P&gt;&lt;A href="https://cwiki.apache.org/confluence/display/KNOX/Examples+Hive"&gt;https://cwiki.apache.org/confluence/display/KNOX/Examples+Hive&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/16887/beeline-connect-via-knox-ssl-issue.html"&gt;https://community.hortonworks.com/questions/16887/beeline-connect-via-knox-ssl-issue.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2017 18:53:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Authentication-Issue-in-Apache-Knox-ldap/m-p/184884#M58829</guid>
      <dc:creator>dsharma</dc:creator>
      <dc:date>2017-04-03T18:53:34Z</dc:date>
    </item>
  </channel>
</rss>

