<?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 - Set up LDAP integration on a running cluster in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/NIFI-Set-up-LDAP-integration-on-a-running-cluster/m-p/376692#M242980</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/106502"&gt;@edim2525&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You can't have NiFi nodes in a cluster configured for different methods of authentication and authorization.&amp;nbsp; User requests made on any node are proxied to the Cluster coordinator and then replicated to all nodes.&amp;nbsp; It is unlikely that your user identity will remain the same once you change to using ldap for user authentication.&amp;nbsp; Then you be setting up authorization based on those new user identities.&lt;BR /&gt;&lt;BR /&gt;Assuming you are currently using a managed-authorizer which uses the file-user-group-provider and file-access-policy-provider in your NiFi authorizers.xml?&amp;nbsp; &amp;nbsp;&lt;BR /&gt;The ldap-provider can be configured to use the LDAP/AD DN (USE_DN) or the username entered at the login prompt (USE_USERNAME) as the user identity (case sensitive).&amp;nbsp;&amp;nbsp;&lt;BR /&gt;Before making any changes to authentication, you could add the the new ldap based user identity in to&amp;nbsp; your NiFi and authorize that user to all policies granted your current certificate based user already has.&amp;nbsp;&lt;BR /&gt;Then make a copy of the the login-identity-providers.xml file and Edit to add the the ldap-provider. Copy modified login-identity-providers.xml to all nodes.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;Then modify nifi.properties file on all nodes by changing following line:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;nifi.security.user.login.identity.provider=ldap-provider&lt;/LI-CODE&gt;&lt;P&gt;***Theoretically (never done this) with authorization setup for your new ldap user identity setup across all nodes, you could probably restart one node at a time understanding that the only node that redirect to the new ldap-provider based login window would be a node that has been restarted.&amp;nbsp; This way wok since your new ldap user identity will get proxied to the other nodes which will have authorization in place.&lt;BR /&gt;&lt;BR /&gt;On restart of your NiFi cluster these modified configuration files will be read.&lt;BR /&gt;Keep in mind that when no other methods of authentication are enabled, NiFi will "REQUIRE" a client certificate for authentication through a mutualTLS exchange.&amp;nbsp; Once additional methods of user authentication is added, mutualTLS auth is always enabled and attempted first, but instead of "REQUIRE", NiFI will "WANT" a client certificate. Only when no client certificate is presented during the MutualTLS exchange will NiFi move on to next configured method of authentication (ldap in your case).&amp;nbsp; MutualTLS can NOT be disabled because it is only method of authentication for node to node communications.&lt;BR /&gt;&lt;BR /&gt;Now a caveat to above is that I have no idea about your current configuration, current user(s), how you plan to configure your ldap-provider, if you are using LDAP or AD, etc..., so guidance is very high level here.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If you found any of the suggestions/solutions provided helped you with your issue, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on one or more of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Sep 2023 20:14:11 GMT</pubDate>
    <dc:creator>MattWho</dc:creator>
    <dc:date>2023-09-21T20:14:11Z</dc:date>
    <item>
      <title>NIFI - Set up LDAP integration on a running cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NIFI-Set-up-LDAP-integration-on-a-running-cluster/m-p/375267#M242364</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I require assistance in configuring my secure cluster to function with LDAP.&lt;/P&gt;&lt;P&gt;Which procedure is recommended when doing that on a running cluster?&lt;/P&gt;&lt;P&gt;What steps do I need to take first?&lt;/P&gt;&lt;P&gt;Do I need to shut down all the nodes?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edi&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2023 14:29:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NIFI-Set-up-LDAP-integration-on-a-running-cluster/m-p/375267#M242364</guid>
      <dc:creator>edim2525</dc:creator>
      <dc:date>2023-08-16T14:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI - Set up LDAP integration on a running cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NIFI-Set-up-LDAP-integration-on-a-running-cluster/m-p/376486#M242937</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/106502"&gt;@edim2525&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;If your NiFi is already secured that means you have already using authentication and authorization is some form of configuration.&amp;nbsp; &amp;nbsp;So depending in your current secure setup configuration, the guidance you may need will vary.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;There are multiple NiFi configuration files that establish the configurations for authentication and authorization (While authorization is dependent on successful authentication, the processes are executed separately).&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;nifi.properties&lt;/LI&gt;&lt;LI&gt;login-identity-providers.xml&lt;/LI&gt;&lt;LI&gt;authorizers.xml&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Understanding your current setup is important for giving proper guidance to change configuration.&lt;BR /&gt;&lt;BR /&gt;For authenticating with LDAP/AD users, you'll want to use the &lt;A href="https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#ldap_login_identity_provider" target="_self"&gt;ldap-provider&lt;/A&gt;&amp;nbsp;in the login-identity-providers.xml&lt;/P&gt;&lt;P&gt;For authorization you can NOT use default "&lt;SPAN&gt;single-user-authorizer" in the authorizers.xml authorizers.xml.&amp;nbsp; You'll need to switch to a different provider like the &lt;A href="https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#standardmanagedauthorizer" target="_self"&gt;Standard Managed Authorizer&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If you found any of the suggestions/solutions provided helped you with your issue, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on one or more of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 14:15:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NIFI-Set-up-LDAP-integration-on-a-running-cluster/m-p/376486#M242937</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2023-09-19T14:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI - Set up LDAP integration on a running cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NIFI-Set-up-LDAP-integration-on-a-running-cluster/m-p/376645#M242970</link>
      <description>&lt;P&gt;Given that I need to update these three files (nifi.properties,login-identity-providers.xml,authorizers.xml) , does this imply that I must stop all the nodes within the cluster, perform the file updates, and then restart the nodes? Is there a method to accomplish this without stopping all the nodes?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Edi&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 06:22:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NIFI-Set-up-LDAP-integration-on-a-running-cluster/m-p/376645#M242970</guid>
      <dc:creator>edim2525</dc:creator>
      <dc:date>2023-09-21T06:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI - Set up LDAP integration on a running cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NIFI-Set-up-LDAP-integration-on-a-running-cluster/m-p/376692#M242980</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/106502"&gt;@edim2525&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You can't have NiFi nodes in a cluster configured for different methods of authentication and authorization.&amp;nbsp; User requests made on any node are proxied to the Cluster coordinator and then replicated to all nodes.&amp;nbsp; It is unlikely that your user identity will remain the same once you change to using ldap for user authentication.&amp;nbsp; Then you be setting up authorization based on those new user identities.&lt;BR /&gt;&lt;BR /&gt;Assuming you are currently using a managed-authorizer which uses the file-user-group-provider and file-access-policy-provider in your NiFi authorizers.xml?&amp;nbsp; &amp;nbsp;&lt;BR /&gt;The ldap-provider can be configured to use the LDAP/AD DN (USE_DN) or the username entered at the login prompt (USE_USERNAME) as the user identity (case sensitive).&amp;nbsp;&amp;nbsp;&lt;BR /&gt;Before making any changes to authentication, you could add the the new ldap based user identity in to&amp;nbsp; your NiFi and authorize that user to all policies granted your current certificate based user already has.&amp;nbsp;&lt;BR /&gt;Then make a copy of the the login-identity-providers.xml file and Edit to add the the ldap-provider. Copy modified login-identity-providers.xml to all nodes.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;Then modify nifi.properties file on all nodes by changing following line:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;nifi.security.user.login.identity.provider=ldap-provider&lt;/LI-CODE&gt;&lt;P&gt;***Theoretically (never done this) with authorization setup for your new ldap user identity setup across all nodes, you could probably restart one node at a time understanding that the only node that redirect to the new ldap-provider based login window would be a node that has been restarted.&amp;nbsp; This way wok since your new ldap user identity will get proxied to the other nodes which will have authorization in place.&lt;BR /&gt;&lt;BR /&gt;On restart of your NiFi cluster these modified configuration files will be read.&lt;BR /&gt;Keep in mind that when no other methods of authentication are enabled, NiFi will "REQUIRE" a client certificate for authentication through a mutualTLS exchange.&amp;nbsp; Once additional methods of user authentication is added, mutualTLS auth is always enabled and attempted first, but instead of "REQUIRE", NiFI will "WANT" a client certificate. Only when no client certificate is presented during the MutualTLS exchange will NiFi move on to next configured method of authentication (ldap in your case).&amp;nbsp; MutualTLS can NOT be disabled because it is only method of authentication for node to node communications.&lt;BR /&gt;&lt;BR /&gt;Now a caveat to above is that I have no idea about your current configuration, current user(s), how you plan to configure your ldap-provider, if you are using LDAP or AD, etc..., so guidance is very high level here.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If you found any of the suggestions/solutions provided helped you with your issue, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on one or more of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 20:14:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NIFI-Set-up-LDAP-integration-on-a-running-cluster/m-p/376692#M242980</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2023-09-21T20:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI - Set up LDAP integration on a running cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NIFI-Set-up-LDAP-integration-on-a-running-cluster/m-p/376871#M243040</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;My cluster is working with a single-user-authorizer .&lt;/P&gt;&lt;P&gt;I tried your method and tested it on a running cluster with three nodes that configure as single-user-authorizer, I&amp;nbsp;updated the&amp;nbsp;three files (nifi.properties,login-identity-providers.xml,authorizers.xml)&amp;nbsp;to work with LDAP configuration. When I restarted the first node (not primary or coordinator ), I got the following error messages in the log.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;2023-09-26 11:20:34,441 ERROR [main] o.s.web.context.ContextLoader Context initialization failed
2023-09-26 11:50:19,381 ERROR [main] o.a.nifi.controller.StandardFlowService Failed to load flow from cluster due to: org.apache.nifi.controller.serialization.FlowSynchronizationException: Failed to connect node to cluster because local flow controller partially updated. Administrator should disconnect node and review flow for corruption.
2023-09-26 11:50:19,595 ERROR [main] o.a.n.c.c.node.NodeClusterCoordinator Event Reported for xxx:8443 -- Node disconnected from cluster due to org.apache.nifi.controller.serialization.FlowSynchronizationException: Failed to connect node to cluster because local flow controller partially updated. Administrator should disconnect node and review flow for corruption.&lt;/LI-CODE&gt;&lt;P&gt;The LDAP configuration takes effect only after restarting all the nodes&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 14:48:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NIFI-Set-up-LDAP-integration-on-a-running-cluster/m-p/376871#M243040</guid>
      <dc:creator>edim2525</dc:creator>
      <dc:date>2023-09-26T14:48:01Z</dc:date>
    </item>
  </channel>
</rss>

