Jabber Openfire服务器v3.6.0a + - 如何使用混合身份验证? [英] Jabber Openfire server v3.6.0a+ - how do I use Hybrid authentication?
问题描述
我为我的网站设置了Jabber服务器。我已经在openfire数据库中有一些用户帐户,并在他们之间工作的IM。
I'm setting up a Jabber server for my website. I've already got some user accounts in place in the openfire database, and working IMs between them.
我现在正在寻找添加(一些)我的主数据库( members
表, login
, password
[纯文本])和 allowed_to_IM
[0或1]字段),以允许它们之间进行通信。 Hybrid
身份验证是v3.6.0a中的一个新功能,但是在 openfire.xml
文件用于数据库连接(到第二个数据库),还有什么可能在属性(其中还占用了大部分配置的XML文件的信息)。
I'm now looking to add (some) of the users from my main database (members
table, with login
, password
[plain text]) and allowed_to_IM
[0 or 1] fields) to allow them to communicate between themselves. The Hybrid
authentication is a new feature in v3.6.0a however, and there's little documentation in what configuration is required in the openfire.xml
file for the database connectivity (to a second database), and what else may go in the properties (which have also taken much of the config's info away of the XML file).
我的问题是:有没有一个完整的例子来检查多个数据库?我看到的所有例子似乎只是片段。
My question is: Does anyone have a complete example that checks multiple databases? All the examples I'm seen seem to be just fragments.
推荐答案
我有它使用ldap和mysql,如果它帮助我从openfire.xml的设置是:
I have it using ldap and mysql and if it helps you my setting from openfire.xml are:
<connectionProvider>
<className>org.jivesoftware.database.DefaultConnectionProvider</className>
</connectionProvider>
<database>
<defaultProvider>
<driver>com.mysql.jdbc.Driver</driver>
<serverURL>jdbc:mysql://127.0.0.1:3306/openfire</serverURL>
<username>username</username>
<password>pass</password>
<minConnections>5</minConnections>
<maxConnections>15</maxConnections>
<connectionTimeout>1.0</connectionTimeout>
</defaultProvider>
</database>
<ldap>
ldapsetting removed
</ldap>
<hybridAuthProvider>
<primaryProvider>
<className>org.jivesoftware.openfire.auth.DefaultAuthProvider</className>
</primaryProvider>
<secondaryProvider>
<className>org.jivesoftware.openfire.ldap.LdapAuthProvider</className>
</secondaryProvider>
</hybridAuthProvider>
<provider>
<auth>
<className>org.jivesoftware.openfire.auth.HybridAuthProvider</className>
</auth>
<vcard>
<className>org.jivesoftware.openfire.auth.DefaultAuthProvider</className>
</vcard>
<user>
<className>org.jivesoftware.openfire.ldap.LdapUserProvider</className>
</user>
<auth>
<className>org.jivesoftware.openfire.ldap.LdapAuthProvider</className>
</auth>
<group>
<className>org.jivesoftware.openfire.ldap.LdapGroupProvider</className>
</group>
</provider>
这篇关于Jabber Openfire服务器v3.6.0a + - 如何使用混合身份验证?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!