【问题标题】:Apache NiFi integration with Active DirectoryApache NiFi 与 Active Directory 的集成
【发布时间】:2019-12-17 11:53:11
【问题描述】:

我有一个与 Active Directory 集成的 Apache NiFi 服务器,并且运行良好。但是每次我必须将新用户插入 AD 中的组时,我必须重新启动我的 NiFi 服务器才能识别用户。有什么解决方案让我不必重新启动我的服务器?

【问题讨论】:

  • 很想知道您是如何让 AD 身份验证工作的。

标签: active-directory apache-nifi


【解决方案1】:

假设您正在讨论 authorizers.xml 中的 LdapUserGroupProvider,那么它应该每 10 秒将用户/组从 LDAP 同步到内存缓存中。

在较新版本的 NiFi 中,同步中添加了日志记录:

if (logger.isDebugEnabled()) {
                logger.debug("-------------------------------------");
                logger.debug("Loaded the following users from LDAP:");
                userList.forEach((user) -> logger.debug(" - " + user));
                logger.debug("--------------------------------------");
                logger.debug("Loaded the following groups from LDAP:");
                groupList.forEach((group) -> logger.debug(" - " + group));
                logger.debug("--------------------------------------");
            }

因此,如果您打开包 org.apache.nifi.ldap.tenants

的调试日志记录,您应该会在 nifi-app.log 中看到该输出

【讨论】:

    猜你喜欢
    • 2016-11-05
    • 1970-01-01
    • 2020-09-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多