Apache NiFi authentication with Active Directory (LDAP)

Authenticate NiFi users with AD credentials via its LDAP Login Identity Provider, with authorization handled separately.

Last updated

On this page (5)

Apache NiFi · Active Directory / LDAP · LDAP

Before you start

  • Secure HTTPS NiFi deployment and access to its server configuration.
  • Trusted AD TLS endpoint and restricted directory search account.

Configure sign-in

  1. Configure the ldap-provider in login-identity-providers.xml with LDAPS or StartTLS, search base and a filter such as sAMAccountName={0}.
  2. Select it with nifi.security.user.login.identity.provider in nifi.properties and choose an identity strategy consistent with authorizer identities.
  3. Configure NiFi access policies for the resulting identities; configure a separate LDAP user/group provider only if directory-backed authorization is needed.

Verify the result

  • Test valid and invalid directory credentials.
  • Confirm the initial administrator identity matches the configured strategy and a limited user cannot edit restricted process groups.

Official documentation

Have Pilae connect your identity provider

Pilae can deploy Apache NiFi with your identity provider already connected. We agree the edition, account mapping and access tests with your team before rollout.