有没有办法在 py-transport 服务器端手动注册用户?

发布于 2024-07-14 23:28:07 字数 89 浏览 6 评论 0原文

我正在尝试编写一些脚本来将我的用户迁移到 ejabberd,但是 建议我注册用户的唯一方法 传输是让他们使用他们的客户端并发现服务。 当然有办法,对吧?

I'm trying to write some scripts to migrate my users to ejabberd, but
the only way that's been suggested for me to register a user with a
transport is to have them use their client and discover the service.
Certainly there is a way, right?

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

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

发布评论

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

评论(1

想你的星星会说话 2024-07-21 23:28:07
  1. 每次运输都要经过一次
    并自行注册。 捕获
    XMPP 数据包。
  2. 转储运输
    您当前的注册数据
    系统转换为 csv 文件、xml 文件或
    其他你可以知道的事情
    结构。
  3. 写一个脚本
    使用 jabberpy、xmpppy、pyxmpp 或
    无论如何,并效仿你的每一个
    用户注册
    运输。

一个问题是您可能必须连接到互联网才能使传输上线。 然后你就可以使用别人的帐户了。 如果您无法获取 jabber 服务器的当前密码数据,请将其全部设置为默认值,然后在传输注册后将其迁移回来。

  1. Go through once for each transport
    and register yourself. Capture the
    XMPP packets.
  2. Dump the transport
    registration data from your current
    system into a csv file, xml file, or
    something else you can know the
    structure.
  3. Write a script
    using jabberpy, xmpppy, pyxmpp, or
    whatever, and emulate each of your
    users registering with the
    transports.

One issue is you may have to be connected to the Internet for the transports to come online. Then you're going live with someone else's account. If you can't get their current password data for your jabber server, set it all to a default and then migrate it back after your transport registration.

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