当前哪些用户连接到 Openfire Jabber 服务器?

发布于 2024-07-16 16:11:06 字数 300 浏览 7 评论 0原文

我有一个 Openfire Jabber 服务器,列出了超过 75,000 个用户。 其中,150 个或更多可以同时在线。

有没有什么地方可以收集当前登录用户的 JID(用户名)? 我对底层数据具有完整的数据库访问权限,但服务器似乎没有将当前状态写回数据库。 由于用户数量较多,名册未被使用。

返回的一组非常有用的数据将来自一个简单的(受密码保护的)网页,每行一个 JID,可选地包含登录时间,也可能是该帐户上次执行操作的时间(例如发送消息)。 后两者不是必需的,但如果数据以及有关用户会话的任何其他可用信息可用,则它们将很有用。

I have got an Openfire Jabber server with in excess of 75,000 users listed. Of those, 150 or more can be online at any one time.

Is there anywhere that I can collect the JIDs (usernames) of the currently logged in users? I have full database access to the underlying data, but the server does not appear to write the current status back to the DB. Because of the number of users, rosters are not being used.

A very useful set of data being returned would be from a simple (password protected) webpage with one JID per line, optionally with the login time, and maybe also the last time that account performed an action [like send a message]. The latter two are not as essential, but would be useful if the data is available, as well as any other information that was available regarding the user session.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

涫野音 2024-07-23 16:11:06

不知道这是否有帮助,但我遇到它寻找类似的功能。 如 XEP-0045 http://xmpp.org/extensions/xep-0045 中所定义.html#disco-roominfo

如果该信息是公开的,则实现可以返回现有占用者的列表
可用,或者如果此信息保密,则根本不返回任何列表。 实施
建议部署默认关闭此类信息共享。

所以你需要确保它像 Openfire 上宣传的那样工作(我遇到的所有 xmpp 服务器都有一个或两个错误),我想你需要编写一些逻辑来获得结果。

祝你好运。

dont know if this will help but I ran into it looking for similar functionality. As defined in XEP-0045 http://xmpp.org/extensions/xep-0045.html#disco-roominfo :

An implementation MAY return a list of existing occupants if that information is publicly
available, or return no list at all if this information is kept private. Implementations
and deployments are advised to turn off such information sharing by default.

So you would need to ensure it works as advertised on Openfire (all xmpp servers ive come across have a bug or two in them), and I imagine you would need to code some logic to get the results.

Good luck.

尐籹人 2024-07-23 16:11:06

这不是一个完美的答案,但您想要的查询可能嵌入在 session-summary.jsp 页面中。 我在本地托管的服务器上访问了它 http://localhost:9090/session-summary.jsp< /a>. 我不知道的是,它是否存储在可查询的数据库中,或者是否存储在客户端内部。 后者的可能性更大。

该页面显示的数据包括名称、资源、状态、状态、优先级、客户端 IP 和关闭连接。

Not a perfect answer, but the query you want is probably embedded in the session-summary.jsp page. I got to it on a locally hosted server at http://localhost:9090/session-summary.jsp. What I don't know is if that is then stored in the database where it is query-able, or if it is stored internally to the client. The latter is more likely.

The data that page displays is Name, Resource, Status, Presence, Priority, Client IP, and Close Connection.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文