[
https://issues.apache.org/jira/browse/NIFI-4127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16077070#comment-16077070
]
ASF GitHub Bot commented on NIFI-4127:
--------------------------------------
Github user mcgilman commented on a diff in the pull request:
https://github.com/apache/nifi/pull/1978#discussion_r125987445
--- Diff: nifi-docs/src/main/asciidoc/administration-guide.adoc ---
@@ -464,6 464,17 @@ Another option for the UserGroupProvider is the
LdapUserGroupProvider. By defaul
* Group Name Attribute - Attribute to use to extract group name (i.e. cn).
Optional. If not set, the entire DN is used.
* Group Member Attribute - Attribute to use to define group membership
(i.e. member). Optional. If not set group membership will not be calculated
through the groups. Will rely on group member being defined through 'User Group
Name Attribute' if set.
Another option for the UserGroupProvider are composite implementations.
This means that multiple sources/implementations can be configured and
composed. For instance, an admin can configure users/groups to be loaded from a
file and an directory server. There are two composite implementations, one that
supports multiple UserGroupProviders and one that supports multiple
UserGroupProviders and a single configurable UserGroupProvider.
The CompositeUserGroupProvider will provide support for retrieving users
and groups from multiple sources.
--- End diff --
Multiple users should be supported in this PR. Did you see otherwise? There
are a couple test cases that verify this [1] [2]. Order does matter and I can
update the docs to describe this fact. UserGroupProviders are invoked in the
order they appear in the authorizers.xml.
[1]
https://github.com/mcgilman/nifi/blob/0e679007e59bfea050f73b046f52b2a772a281ae/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-authorization/src/test/java/org/apache/nifi/authorization/CompositeUserGroupProviderTest.java#L139
[2]
https://github.com/mcgilman/nifi/blob/0e679007e59bfea050f73b046f52b2a772a281ae/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-authorization/src/test/java/org/apache/nifi/authorization/CompositeConfigurableUserGroupProviderTest.java#L93
> Create a CompositeUserGroupProvider
> -----------------------------------
>
> Key: NIFI-4127
> URL: https://issues.apache.org/jira/browse/NIFI-4127
> Project: Apache NiFi
> Issue Type: Improvement
> Components: Extensions
> Reporter: Matt Gilman
> Assignee: Matt Gilman
>
> Create a CompositeUserGroupProvider to support loading users/groups from
> multiple sources. This composite implementation should support
> {noformat}
> 0-1 ConfigurableUserGroupProvider
> 0-n UserGroupProviders
> {noformat}
> Only a single ConfigurableUserGroupProvider can be supplied to keep these
> sources/implementation details hidden from the end users. The
> CompositeUserGroupProvider must be configured with at least 1 underlying
> provider.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)