alopresto commented on a change in pull request #3495: NIFI-5973 Adds
ShellUserGroupProvider
URL: https://github.com/apache/nifi/pull/3495#discussion_r293611206
##########
File path:
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-resources/src/main/resources/conf/authorizers.xml
##########
@@ -198,12 +198,22 @@
NOTE: Any identity mapping rules specified in nifi.properties are
not applied in this implementation. This behavior
would need to be applied by the base implementation.
-->
+
+ <!-- To enable the shell-user-group-provider remove 2 lines. This is 1 of
2.
+ <userGroupProvider>
+ <identifier>shell-user-group-provider</identifier>
+ <class>org.apache.nifi.authorization.ShellUserGroupProvider</class>
+ <property name="Initial Refresh Delay">30</property
Review comment:
Here is the LDAP code for parsing those values into the proper numerical
value given the time units:
https://github.com/apache/nifi/blob/531c84ac31f93ef72521134a7cc5ea19a2f1e276/nifi-nar-bundles/nifi-ldap-iaa-providers-bundle/nifi-ldap-iaa-providers/src/main/java/org/apache/nifi/ldap/tenants/LdapUserGroupProvider.java#L368
I think the existing `FormatUtils.getTimeDuration()` is deprecated; use
`FormatUtils.getPreciseTimeDuration()` instead.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services