<?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: NiFi Authentication with LDAP in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Authentication-with-LDAP/m-p/352172#M236457</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/100422"&gt;@myzard&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;If you are positive the username and password entered are valid, this likely points to an issue in your login-identity-providers.xml ldap-provider configuration with the manager DN and/or manager password.&lt;BR /&gt;&lt;BR /&gt;Since this is an xml file, the first question to ask is if the password contains any XML special characters (&amp;lt;, &amp;gt;, ", `, or &amp;amp;):&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;  replace with	&amp;amp;lt;
&amp;gt;  replace with	&amp;amp;gt;
"  replace with	&amp;amp;quot;
ˋ  replace with	&amp;amp;apos;
&amp;amp;  replace with	&amp;amp;amp;&lt;/LI-CODE&gt;&lt;P&gt;If so, you'll need to escape them by using above substitutions.&lt;BR /&gt;&lt;BR /&gt;Next is to use ldapsearch to verify the manager DN and manager password works using same configuration set in the ldap-provider (minus xml substitutions if any) against the same username and password.&lt;BR /&gt;&lt;BR /&gt;Make sure the results from your ldapsearch on returns one matching user.&lt;BR /&gt;I have seen setups where ldap had same username multiple times under different DNs.&lt;BR /&gt;This will not work with NiFi login as NiFi would be unable to determine which is the actual user being authenticated.&amp;nbsp; In this scenario, adjust your search base so that it only returns one user entry.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="batang,apple gothic"&gt;If you found that the provided solution(s) assisted you with your query, please take a moment to login and click&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="arial black,avant garde" color="#FF0000"&gt;Accept as Solution&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="batang,apple gothic" color="#000000"&gt;below each response that helped.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Sep 2022 20:29:57 GMT</pubDate>
    <dc:creator>MattWho</dc:creator>
    <dc:date>2022-09-13T20:29:57Z</dc:date>
    <item>
      <title>NiFi Authentication with LDAP</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Authentication-with-LDAP/m-p/352146#M236447</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to secure NiFi authentication using LDAP configuration.&amp;nbsp;&lt;SPAN&gt;). I am able to get to the login screen, but then I am getting an error on logging in ( The supplied username and password are invalid)&amp;nbsp;even though the username and password are correct.Can someone help me in the direction, on what might be the problem?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="myzard_0-1663061722582.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/35541i6345C1340F6FA286/image-size/medium?v=v2&amp;amp;px=400" role="button" title="myzard_0-1663061722582.png" alt="myzard_0-1663061722582.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 13:37:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-Authentication-with-LDAP/m-p/352146#M236447</guid>
      <dc:creator>myzard</dc:creator>
      <dc:date>2022-09-13T13:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi Authentication with LDAP</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Authentication-with-LDAP/m-p/352172#M236457</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/100422"&gt;@myzard&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;If you are positive the username and password entered are valid, this likely points to an issue in your login-identity-providers.xml ldap-provider configuration with the manager DN and/or manager password.&lt;BR /&gt;&lt;BR /&gt;Since this is an xml file, the first question to ask is if the password contains any XML special characters (&amp;lt;, &amp;gt;, ", `, or &amp;amp;):&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;  replace with	&amp;amp;lt;
&amp;gt;  replace with	&amp;amp;gt;
"  replace with	&amp;amp;quot;
ˋ  replace with	&amp;amp;apos;
&amp;amp;  replace with	&amp;amp;amp;&lt;/LI-CODE&gt;&lt;P&gt;If so, you'll need to escape them by using above substitutions.&lt;BR /&gt;&lt;BR /&gt;Next is to use ldapsearch to verify the manager DN and manager password works using same configuration set in the ldap-provider (minus xml substitutions if any) against the same username and password.&lt;BR /&gt;&lt;BR /&gt;Make sure the results from your ldapsearch on returns one matching user.&lt;BR /&gt;I have seen setups where ldap had same username multiple times under different DNs.&lt;BR /&gt;This will not work with NiFi login as NiFi would be unable to determine which is the actual user being authenticated.&amp;nbsp; In this scenario, adjust your search base so that it only returns one user entry.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="batang,apple gothic"&gt;If you found that the provided solution(s) assisted you with your query, please take a moment to login and click&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="arial black,avant garde" color="#FF0000"&gt;Accept as Solution&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="batang,apple gothic" color="#000000"&gt;below each response that helped.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 20:29:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-Authentication-with-LDAP/m-p/352172#M236457</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2022-09-13T20:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi Authentication with LDAP</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Authentication-with-LDAP/m-p/352782#M236596</link>
      <description>&lt;P&gt;not worked any solution ?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 03:29:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-Authentication-with-LDAP/m-p/352782#M236596</guid>
      <dc:creator>myzard</dc:creator>
      <dc:date>2022-09-21T03:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi Authentication with LDAP</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Authentication-with-LDAP/m-p/353037#M236635</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/100422"&gt;@myzard&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Did your LDAP manager password contain any XML special characters?&lt;BR /&gt;Did you verify ldapsearch worked from same same host were NiFi is installed using that manager DN and Manager password to get a return for the user you are trying to login in with?&lt;BR /&gt;&lt;BR /&gt;what output did you get from ldap search?&lt;BR /&gt;&lt;BR /&gt;For the ldap-provider, there are only two username and passwords in use:&lt;BR /&gt;1. Manager DN and Manager password configured in the ldap-provider&lt;BR /&gt;2. username and password entered at login interface.&lt;BR /&gt;&lt;BR /&gt;Other suggestions:&lt;BR /&gt;- Make sure there are no leading or trailing whitespaces on the username or password configured in the provider or entered at the login windows.&lt;BR /&gt;- Make sure the nifi.properties file is properly configured for the ldap-provider and not a different login provider like kerberos-provider.&lt;BR /&gt;- Share you ldap-providers.xml file&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 12:22:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-Authentication-with-LDAP/m-p/353037#M236635</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2022-09-22T12:22:32Z</dc:date>
    </item>
  </channel>
</rss>

