<?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: Connecting knox and ldap in production evironment in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Connecting-knox-and-ldap-in-production-evironment/m-p/113994#M42795</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/2755/kpandey.html" nodeid="2755"&gt;@Krishna Pandey&lt;/A&gt;&lt;P&gt; &lt;A rel="user" href="https://community.cloudera.com/users/2648/sshimpi.html" nodeid="2648"&gt;@Sagar Shimpi&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Its working now as my 389 port was blocked on my VM having LDAP running..Thanks.!!&lt;/P&gt;</description>
    <pubDate>Thu, 06 Oct 2016 22:26:52 GMT</pubDate>
    <dc:creator>reyaan26</dc:creator>
    <dc:date>2016-10-06T22:26:52Z</dc:date>
    <item>
      <title>Connecting knox and ldap in production evironment</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Connecting-knox-and-ldap-in-production-evironment/m-p/113991#M42792</link>
      <description>&lt;OL&gt;
	
&lt;LI&gt;Need some guindance using knox and authenticate users using LDAP in actual environment,  but before moving there i want to have same setup on my PC.Installed sandbox 2.3.2 , and knox is running using using demo ldap and ran couple of curl commands as well .Installed openldap , phpldapadmin on another VM (supposing it will be the case in prod environment). Both VMs are having brdiged connection and is able to ping each other.Now as per the documention , i need to create a topology file . Based on my understanding it will be like below:-&lt;/LI&gt;&lt;LI&gt;Now after starting knox gateway again, how it will communicate with ldap??&lt;/LI&gt;&lt;LI&gt;ldap.jar is for demo ldap , which jar will be used in this case.??&lt;/LI&gt;&lt;LI&gt;does i need to install openldap clients ??&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Any pointers or tutorial will be great help!!&lt;/P&gt;&lt;PRE&gt;
	&amp;lt;provider&amp;gt;
    &amp;lt;role&amp;gt;authentication&amp;lt;/role&amp;gt;
    &amp;lt;name&amp;gt;ShiroProvider&amp;lt;/name&amp;gt;
    &amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;
    &amp;lt;param&amp;gt;
        &amp;lt;name&amp;gt;main.ldapRealm&amp;lt;/name&amp;gt;
        &amp;lt;value&amp;gt;org.apache.shiro.realm.ldap.JndiLdapRealm&amp;lt;/value&amp;gt;
    &amp;lt;param&amp;gt;
    &amp;lt;param&amp;gt;
        &amp;lt;name&amp;gt;main.ldapRealm.userDnTemplate&amp;lt;/name&amp;gt;
        &amp;lt;value&amp;gt;uid={0},ou=hadoopdev,dc=my-ldap,dc=com&amp;lt;/value&amp;gt;
    &amp;lt;/param&amp;gt;
    &amp;lt;param&amp;gt;
        &amp;lt;name&amp;gt;main.ldapRealm.contextFactory.url&amp;lt;/name&amp;gt;
        &amp;lt;value&amp;gt;ldap://192.XX.XX.XX:389&amp;lt;/value&amp;gt;
    &amp;lt;/param&amp;gt;
    &amp;lt;param&amp;gt;
        &amp;lt;name&amp;gt;main.ldapRealm.contextFactory.authenticationMechanism&amp;lt;/name&amp;gt;
        &amp;lt;value&amp;gt;simple&amp;lt;/value&amp;gt;
    &amp;lt;/param&amp;gt;
    &amp;lt;param&amp;gt;
        &amp;lt;name&amp;gt;urls./**&amp;lt;/name&amp;gt;
        &amp;lt;value&amp;gt;$auth_type&amp;lt;/value&amp;gt;
    &amp;lt;/param&amp;gt;
    &amp;lt;param&amp;gt;
        &amp;lt;name&amp;gt;sessionTimeout&amp;lt;/name&amp;gt;
        &amp;lt;value&amp;gt;$minutes&amp;lt;/value&amp;gt;
    &amp;lt;/param&amp;gt;
&amp;lt;/provider&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Oct 2016 17:46:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Connecting-knox-and-ldap-in-production-evironment/m-p/113991#M42792</guid>
      <dc:creator>reyaan26</dc:creator>
      <dc:date>2016-10-05T17:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting knox and ldap in production evironment</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Connecting-knox-and-ldap-in-production-evironment/m-p/113992#M42793</link>
      <description>&lt;P&gt;Apache Knox uses Shiro for LDAP authentication. You can put the details of your LDAP server and port in topology file. Knox will use the LDAP Server IP Address and Port to communicate. If you are using OpenLDAP to authenticate, you can safely stop Demo LDAP service in Knox.
Yes you need to install openldap, openldap-clients, and openldap-servers package.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2016 18:21:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Connecting-knox-and-ldap-in-production-evironment/m-p/113992#M42793</guid>
      <dc:creator>WhiteHa</dc:creator>
      <dc:date>2016-10-05T18:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting knox and ldap in production evironment</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Connecting-knox-and-ldap-in-production-evironment/m-p/113993#M42794</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/3378/reyaan26.html" nodeid="3378"&gt;@Anwaar Siddiqui&lt;/A&gt;&lt;P&gt;1. Knox gateway will check for the respective topology file which has the ldap settings configured[if you have integrated knox with ldap]&lt;/P&gt;&lt;P&gt;2. For demo ldap - you can use "ps -aef |grep ldap" command to check which is the jar being picked up.&lt;/P&gt;&lt;P&gt;3. You will need to have openldap clients on all nodes to make sure the user exist on all nodes.&lt;/P&gt;&lt;P&gt;Below link will have more details  - 
&lt;A href="http://knox.apache.org/books/knox-0-8-0/user-guide.html#Introduction" target="_blank"&gt;http://knox.apache.org/books/knox-0-8-0/user-guide.html#Introduction&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2016 18:24:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Connecting-knox-and-ldap-in-production-evironment/m-p/113993#M42794</guid>
      <dc:creator>sshimpi</dc:creator>
      <dc:date>2016-10-05T18:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting knox and ldap in production evironment</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Connecting-knox-and-ldap-in-production-evironment/m-p/113994#M42795</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/2755/kpandey.html" nodeid="2755"&gt;@Krishna Pandey&lt;/A&gt;&lt;P&gt; &lt;A rel="user" href="https://community.cloudera.com/users/2648/sshimpi.html" nodeid="2648"&gt;@Sagar Shimpi&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Its working now as my 389 port was blocked on my VM having LDAP running..Thanks.!!&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2016 22:26:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Connecting-knox-and-ldap-in-production-evironment/m-p/113994#M42795</guid>
      <dc:creator>reyaan26</dc:creator>
      <dc:date>2016-10-06T22:26:52Z</dc:date>
    </item>
  </channel>
</rss>

