简体   繁体   English

Apache NiFi与Active Directory集成

[英]Apache NiFi integration with Active Directory

I have an Apache NiFi server integrated with Active Directory and its working well. 我有一台与Active Directory集成在一起的Apache NiFi服务器,并且运行良好。 But everytime i have to insert a new user into a group in AD, i have to reinitiate my NiFi server for the user to be recognized. 但是每次我必须将新用户插入AD中的组时,都必须重新启动我的NiFi服务器以使该用户被识别。 Is there any solution for i don't have to reinitiate my server? 有什么解决方案可以让我不必重新启动服务器吗?

Assuming you are talking about the LdapUserGroupProvider in authorizers.xml, then it should be syncing the users/groups from LDAP into an in-memory cache every 10 seconds. 假设您正在谈论authorizers.xml中的LdapUserGroupProvider,那么它应该每10秒将LDAP中的用户/组同步到内存中的缓存中。

In newer versions of NiFi there is logging added to the sync: 在较新版本的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("--------------------------------------");
            }

So you should see that output in nifi-app.log if you turn on debug logging for the package org.apache.nifi.ldap.tenants 因此,如果为包org.apache.nifi.ldap.tenants打开调试日志记录,则应在nifi-app.log中看到该输出。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM