【发布时间】:2019-12-17 11:53:11
【问题描述】:
我有一个与 Active Directory 集成的 Apache NiFi 服务器,并且运行良好。但是每次我必须将新用户插入 AD 中的组时,我必须重新启动我的 NiFi 服务器才能识别用户。有什么解决方案让我不必重新启动我的服务器?
【问题讨论】:
-
很想知道您是如何让 AD 身份验证工作的。
标签: active-directory apache-nifi
我有一个与 Active Directory 集成的 Apache NiFi 服务器,并且运行良好。但是每次我必须将新用户插入 AD 中的组时,我必须重新启动我的 NiFi 服务器才能识别用户。有什么解决方案让我不必重新启动我的服务器?
【问题讨论】:
标签: active-directory apache-nifi
假设您正在讨论 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 中看到该输出【讨论】: