有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

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

这是我遇到的最长的线程,它解决了一个非常简单的问题,即对来自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可以从自己的数据库和外部数据库对用户进行身份验证吗 还有数据库吗


共 (1) 个答案

  1. # 1 楼答案

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

    要允许外部用户登录到管理面板,您必须在admin中添加他们的jabber id。授权DJIDS