[xmpp] openfire 接入自己的用户表 -v 3.6.4
chbest
2010-03-04
org.jivesoftware.util.JiveProperties
修改provider.auth.className的对应的class类就可以 |
|
lwz777
2010-11-01
![]() |
|
bluky999
2011-08-19
思路不错,可否说下具体编码实现的时候如何处理比较典型啊?
|
|
noex2010
2011-10-13
insert into ofproperty(name,propValue)values
('jdbcProvider.driver','com.mysql.jdbc.Driver'), ('jdbcProvider.connectionString','jdbc:mysql://xxx.xxx.xxx.xxx:3306/abc? user=root&password=xxxx'), ('admin.authorizedJIDs','adminxxx@xxx.xxx'), /*users表中的管理员用户*/ ('jdbcAuthProvider.passwordSQL','select pass from abc.users where id=?'), ('jdbcAuthProvider.passwordType','plain'),/*密码为明文*/ ('jdbcUserProvider.loadUserSQL','select id,name,email from abc.users whereid=?'), ('jdbcUserProvider.userCountSQL','select count(id) from abc.users'), ('jdbcUserProvider.allUsersSQL','select id from abc.users'), ('jdbcUserProvider.searchSQL','select id from abc.users'), ('jdbcUserProvider.usernameField','id'), ('jdbcUserProvider.nameField','name'), ('jdbcUserProvider.emailField','email'); UPDATE ofProperty SET propValue='org.jivesoftware.openfire.user.JDBCUserProvider' WHERE name='provider.user.className'; UPDATE ofProperty SET propValue='org.jivesoftware.openfire.auth.JDBCAuthProvider' WHERE name='provider.auth.className'; /*本人已实践过*/ |
|
noex2010
2011-10-13
另外问一下,有人实践过openfire的clustering没?哪有企业版的openfire下呢?或者企业版插件?谢谢啦!!
|