gpt4 book ai didi

xmpp - XEP-0133 : Admin Requests to Get a User's Roster - Returns Service unavailable

转载 作者:行者123 更新时间:2023-12-02 03:52:56 24 4
gpt4 key购买 nike

我正在尝试通过 ejabberd 服务器上的管理员帐户获取用户名册。

这就是我想要做的:

    <iq 
id='get-user-roster-2'
to='localhost'
type='set'
xml:lang='en'>
<command xmlns='http://jabber.org/protocol/commands'
node='http://jabber.org/protocol/admin#get-user-roster'
sessionid='2012-12-04T12:44:27.123921Z'>
<x xmlns='jabber:x:data' type='submit'>
<field type='hidden' var='FORM_TYPE'>
<value>http://jabber.org/protocol/admin</value>
</field>
<field var='accountjids'>
<value>myuser@localhost</value>
</field>
</x>
</command>
</iq>

返回:

    <iq from='server@localhost' to='server@localhost/server@localhost/' type='error' id='purple64033b0f'>
<ping xmlns='urn:xmpp:ping'/>
<error code='503' type='cancel'>
<service-unavailable xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
</error>
</iq>

知道这意味着什么以及如何解决它吗?我是 XMPP 的新手。

感谢任何指点。

谢谢。

最佳答案

XEP-0133简介:
存在一组管理员经常需要执行的与 Jabber/XMPP 服务器相关的常见服务级别任务......本文档通过指定 Ad-Hoc 命令的配置文件和关联的数据表单字段,而不是通过定义专门的和不同的协议(protocol)。
XEP-0133 要求:
使具有适当权限的用户能够执行与 Jabber/XMPP 服务器和组件相关的常见管理任务。
尽可能重复使用现有的 XMPP 和 Jabber 协议(protocol)。


so i think that u dont have Ad-Hoc command or Data Form service.u can check this with sevice discovery XEP-0030

关于xmpp - XEP-0133 : Admin Requests to Get a User's Roster - Returns Service unavailable,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13725766/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com