简体   繁体   中英

How to configure open fire to authenticate users from external database?

This is the longest possible thread I have come across to fix a very simple problem to authenticate users from external database in open fire

Proper fix is that do not change the properties in the conf/openfire.xml , Add the properties in the ofProperty table mentioned 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');

stop the openfire and start the openfire.

Note: All the settings in changed manually in the /conf/openfire.xml will be lost when open fire starts.

Question :

  • How do I login in to admin console after changing the properties ?

  • Can openfire authenticate users from its own database and external database as well ?

First of all, avoid inserting custom queries in the xml file or in the database. The best way is to add the data in the admin panel of openfire following the examples in the docs.

To allow your external users to log to the admin panel, you have to add their jabber id in admin.authorizedJIDs

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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