gpt4 book ai didi

java - 如何配置 open fire 以从外部数据库对用户进行身份验证?

转载 作者:太空宇宙 更新时间:2023-11-04 12:20:16 25 4
gpt4 key购买 nike

这是我遇到的最长的线程,用于解决一个非常简单的问题,以验证来自 external database in open fire 的用户。

正确的解决方法是不要更改 conf/openfire.xml 中的属性,在提到的 ofProperty 表中添加属性 here

e.g For Authentication Integration 

insert into ofProperty values('provider.auth.className', 'org.jivesoftware.openfire.auth.JDBCAuthProvider');
insert into ofProperty values('jdbcAuthProvider.passwordSQL', 'SELECT password FROM user_account WHERE username=?');
insert into ofProperty values('jdbcAuthProvider.passwordType', 'plain');

停止开火并启动开火。

注意:在/conf/openfire.xml 中手动更改的所有设置将在开火开始时丢失。

问题:

  • 更改属性后如何登录管理控制台?

  • openfire 可以从自己的数据库和外部数据库对用户进行身份验证吗?还有数据库吗?

最佳答案

首先,避免在 xml 文件或数据库中插入自定义查询。最好的方法是按照文档中的示例在 openfire 的管理面板中添加数据。

要允许您的外部用户登录管理面板,您必须在 admin.authorizedJIDs 中添加他们的 jabber ID

关于java - 如何配置 open fire 以从外部数据库对用户进行身份验证?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38920828/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com