Openfire Sql 数据库集成
我正在按照本指南(http://www.igniterealtime.org/builds/openfire/docs/latest/documentation/db-integration-guide.html)将Openfire服务器与Sql Server数据库集成。
我这样配置 openfire.xml:
<jdbcProvider>
<driver>net.sourceforge.jtds.jdbc.Driver</driver>
<connectionString>jdbc:jtds:sqlserver://192.168.21.40:1433/XmppTests;user=myusername;password=mypass;instance=sqlserver2008ex;</connectionString>
</jdbcProvider>
<provider>
<auth>
<className>org.jivesoftware.openfire.auth.JDBCAuthProvider</className>
</auth>
</provider>
<jdbcAuthProvider>
<passwordSQL>SELECT password FROM dbo.Users WHERE username=?</passwordSQL>
<passwordType>plain</passwordType>
</jdbcAuthProvider>
<admin>
<authorizedUsernames>francisco</authorizedUsernames>
</admin>
当我打开服务器时,它不会显示任何错误,它会将文件恢复为默认值。我检查日志,但找不到任何东西。
I'm following this guide (http://www.igniterealtime.org/builds/openfire/docs/latest/documentation/db-integration-guide.html) to integrate the Openfire server with and Sql Server Database.
I configured the openfire.xml like this:
<jdbcProvider>
<driver>net.sourceforge.jtds.jdbc.Driver</driver>
<connectionString>jdbc:jtds:sqlserver://192.168.21.40:1433/XmppTests;user=myusername;password=mypass;instance=sqlserver2008ex;</connectionString>
</jdbcProvider>
<provider>
<auth>
<className>org.jivesoftware.openfire.auth.JDBCAuthProvider</className>
</auth>
</provider>
<jdbcAuthProvider>
<passwordSQL>SELECT password FROM dbo.Users WHERE username=?</passwordSQL>
<passwordType>plain</passwordType>
</jdbcAuthProvider>
<admin>
<authorizedUsernames>francisco</authorizedUsernames>
</admin>
When I turn the server on it doesn't show me any error, it reverts the file to the default values. I check the logs and I can't find anything.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
来自此处。
并确认此处:
From here.
And confirmation here: