![](/img/trans.png)
[英]How to authenticate users from database with an authentication provider?
[英]How to configure open fire to authenticate users from external database?
這是我遇到的最長的線程,用於修復一個非常簡單的問題,即在開放式火災中從外部數據庫驗證用戶身份
正確的解決方法是不要更改conf/openfire.xml
ofProperty
中的屬性,在這里提到的ofProperty
表中添加屬性
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');
停止openfire並開始openfire。
注意:在開火時,在/conf/openfire.xml中手動更改的所有設置都將丟失。
題 :
更改屬性后如何登錄管理控制台?
openfire可以從自己的數據庫和外部數據庫中驗證用戶嗎?
首先,避免在xml文件或數據庫中插入自定義查詢。 最好的方法是按照文檔中的示例在openfire的管理面板中添加數據。
要允許外部用戶登錄管理面板,您必須在admin.authorizedJIDs中添加他們的jabber ID
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.